Class UriAuthority
Represents the authority part for a HostDefinition
Inheritance
System.Object
UriAuthority
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class UriAuthority
Constructors
UriAuthority(String)
Creates a new UriAuthority
Declaration
public UriAuthority(string authority)
Parameters
Type | Name | Description |
---|---|---|
System.String | authority | The string representation for the authority |
Properties
Hostname
The host name
Declaration
public string Hostname { get; }
Property Value
Type | Description |
---|---|
System.String |
IsDefaultPort
Determines if the port is the default port
Declaration
public bool IsDefaultPort { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWildcard
Specifies if it is a wildcard host
Declaration
public bool IsWildcard { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Port
The port
Declaration
public int Port { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Matches(String, Boolean)
Determines if passed in authority string matches current instance
Declaration
public bool Matches(string authority, bool allowWildcardMatch)
Parameters
Type | Name | Description |
---|---|---|
System.String | authority | The autority to match |
System.Boolean | allowWildcardMatch | If wildcard match shold be allowed |
Returns
Type | Description |
---|---|
System.Boolean | true if matches else false |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()