共用方式為


WSHttpBindingBase.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

屬性值

HostNameComparisonMode 值,指出在比對 URI 時此主機名稱是否會用來取用服務。 預設值為 StrongWildcard,表示比對時忽略主機名稱。

範例

這個範例會示範如何取得 HostNameComparisonMode 值。

HostNameComparisonMode hostnameComparisonMode =
binding1.HostNameComparisonMode;
Dim hostnameComparisonMode As HostNameComparisonMode = binding1.HostNameComparisonMode

適用於