共用方式為


WebScriptEndpointElement.HostNameComparisonMode 屬性

定義

指定分派傳入訊息給 WebScriptEndpoint 時,在 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)]
[System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.HostNameComparisonModeHelper))]
public System.ServiceModel.HostNameComparisonMode HostNameComparisonMode { get; set; }
[<System.Configuration.ConfigurationProperty("hostNameComparisonMode", DefaultValue=System.ServiceModel.HostNameComparisonMode.StrongWildcard)>]
[<System.ServiceModel.Configuration.ServiceModelEnumValidator(typeof(System.ServiceModel.HostNameComparisonModeHelper))>]
member this.HostNameComparisonMode : System.ServiceModel.HostNameComparisonMode with get, set
Public Property HostNameComparisonMode As HostNameComparisonMode

屬性值

HostNameComparisonMode

比較模式的列舉描述。

屬性
ConfigurationPropertyAttribute ServiceModelEnumValidatorAttribute

備註

比較模式設定指的是 StrongWildcard、Exact 及 WeakWildcard 描述。

適用於