HttpTransportElement.HostNameComparisonMode 属性

定义

获取或设置一个值,该值指定在对 URI 进行匹配时如何使用主机名来访问服务。

public:
 property System::ServiceModel::HostNameComparisonMode HostNameComparisonMode { System::ServiceModel::HostNameComparisonMode get(); void set(System::ServiceModel::HostNameComparisonMode value); };
[System.Configuration.ConfigurationProperty("hostNameComparisonMode", DefaultValue=System.ServiceModel.HostNameComparisonMode.StrongWildcard)]
public System.ServiceModel.HostNameComparisonMode HostNameComparisonMode { get; set; }
[<System.Configuration.ConfigurationProperty("hostNameComparisonMode", DefaultValue=System.ServiceModel.HostNameComparisonMode.StrongWildcard)>]
member this.HostNameComparisonMode : System.ServiceModel.HostNameComparisonMode with get, set
Public Property HostNameComparisonMode As HostNameComparisonMode

属性值

指定如何在传入的请求路到终结点 URI 时包含主机名的 HostNameComparisonMode 值。 默认值为 StrongWildcard,它将忽略匹配项中的主机名。

属性

适用于