HttpTransportBindingElement.HostNameComparisonMode 属性

定义

获取或设置一个值,该值指示在对 URI 进行匹配时,是否使用主机名来访问服务。Gets or sets a value that indicates whether the hostname is used to reach the service when matching on the URI.

public:
 property System::ServiceModel::HostNameComparisonMode HostNameComparisonMode { System::ServiceModel::HostNameComparisonMode get(); void set(System::ServiceModel::HostNameComparisonMode value); };
public System.ServiceModel.HostNameComparisonMode HostNameComparisonMode { get; set; }
member this.HostNameComparisonMode : System.ServiceModel.HostNameComparisonMode with get, set
Public Property HostNameComparisonMode As HostNameComparisonMode

属性值

HostNameComparisonMode 枚举值,该值指示在将传入的请求路由到终结点 URI 时,是否包含主机名。The HostNameComparisonMode enumeration value that indicates whether the hostname is included when routing incoming requests to an endpoint URI. 默认值为 StrongWildcard,表示忽略匹配项中的主机名。The default value is StrongWildcard, which ignores the hostname in the match.

异常

设置的值尚未定义。The value set is not defined.

适用于