HttpBindingBase.HostNameComparisonMode 属性

定义

获取或设置一个值,该值指示在对 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

属性值

如果主机名用于于 URI 相匹配,则为 true;否则为 false

适用于