Share via


HttpSelfHostConfiguration.HostNameComparisonMode Property

Gets a value that specifies how the host name should be used in URI comparisons when dispatching an incoming message.

Namespace:  System.Web.Http.SelfHost
Assembly:  System.Web.Http.SelfHost (in System.Web.Http.SelfHost.dll)

Syntax

'Declaration
Public Property HostNameComparisonMode As HostNameComparisonMode 
    Get 
    Set
'Usage
Dim instance As HttpSelfHostConfiguration 
Dim value As HostNameComparisonMode 

value = instance.HostNameComparisonMode

instance.HostNameComparisonMode = value
public HostNameComparisonMode HostNameComparisonMode { get; set; }
public:
property HostNameComparisonMode HostNameComparisonMode {
    HostNameComparisonMode get ();
    void set (HostNameComparisonMode value);
}
member HostNameComparisonMode : HostNameComparisonMode with get, set
function get HostNameComparisonMode () : HostNameComparisonMode 
function set HostNameComparisonMode (value : HostNameComparisonMode)

Property Value

Type: System.ServiceModel.HostNameComparisonMode
One of the values of the HostNameComparisonMode enumeration.

See Also

Reference

HttpSelfHostConfiguration Class

System.Web.Http.SelfHost Namespace