共用方式為


WebHttpEndpointElement.HostNameComparisonMode 屬性

定義

取得或設定 Web 服務主機名稱與 URI 比對規則,此規則會在繫結項目中設定,分派傳入訊息時,此規則也會用於傳輸 (例如 HTTP、TCP 及具名管道)。

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

適用於