UrlPrefix Class

Namespace
Microsoft.Net.Http.Server
Assemblies
  • Microsoft.Net.Http.Server

Syntax

public class UrlPrefix
class Microsoft.Net.Http.Server.UrlPrefix

Methods

Create(System.String)
Return type:Microsoft.Net.Http.Server.UrlPrefix
public static UrlPrefix Create(string prefix)
Create(System.String, System.String, System.Nullable<System.Int32>, System.String)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364698(v=vs.85).aspx

Arguments:
  • scheme (System.String) – http or https. Will be normalized to lower case.
  • host (System.String) – +, *, IPv4, [IPv6], or a dns name. Http.Sys does not permit punycode (xn–), use Unicode instead.
  • portValue (System.Nullable<System.Int32>) – If empty, the default port for the given scheme will be used (80 or 443).
  • path (System.String) – Should start and end with a ‘/’, though a missing trailing slash will be added. This value must be un-escaped.
Return type:

Microsoft.Net.Http.Server.UrlPrefix

public static UrlPrefix Create(string scheme, string host, int ? portValue, string path)
Create(System.String, System.String, System.String, System.String)

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364698(v=vs.85).aspx

Arguments:
  • scheme (System.String) – http or https. Will be normalized to lower case.
  • host (System.String) – +, *, IPv4, [IPv6], or a dns name. Http.Sys does not permit punycode (xn–), use Unicode instead.
  • port (System.String) – If empty, the default port for the given scheme will be used (80 or 443).
  • path (System.String) – Should start and end with a ‘/’, though a missing trailing slash will be added. This value must be un-escaped.
Return type:

Microsoft.Net.Http.Server.UrlPrefix

public static UrlPrefix Create(string scheme, string host, string port, string path)
Equals(System.Object)
Return type:System.Boolean
public override bool Equals(object obj)
GetHashCode()
Return type:System.Int32
public override int GetHashCode()
ToString()
Return type:System.String
public override string ToString()

Properties

Microsoft.Net.Http.Server.UrlPrefix.Host
Return type:System.String
public string Host { get; }
Microsoft.Net.Http.Server.UrlPrefix.IsHttps
Return type:System.Boolean
public bool IsHttps { get; }
Microsoft.Net.Http.Server.UrlPrefix.Path
Return type:System.String
public string Path { get; }
Microsoft.Net.Http.Server.UrlPrefix.Port
Return type:System.String
public string Port { get; }
Microsoft.Net.Http.Server.UrlPrefix.PortValue
Return type:System.Int32
public int PortValue { get; }
Microsoft.Net.Http.Server.UrlPrefix.Scheme
Return type:System.String
public string Scheme { get; }
Microsoft.Net.Http.Server.UrlPrefix.Whole
Return type:System.String
public string Whole { get; }