Share via


HttpBinding.HostNameComparisonMode Property

Gets or sets a value that indicates whether the hostname is used to reach the service when matching the URI.

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

Syntax

'Declaration
Public Property HostNameComparisonMode As HostNameComparisonMode
    Get
    Set
'Usage
Dim instance As HttpBinding
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
The HostnameComparisonMode value.

See Also

Reference

HttpBinding Class

System.Web.Http.SelfHost.Channels Namespace