WSHttpBinding.Security プロパティ

定義

このバインディングで使用されるセキュリティ設定を取得します。

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

プロパティ値

このバインディングで使用される WSHttpSecurity。 既定値の Mode プロパティは Message です。

次の例は、Security の値を取得する方法を示しています。

WSHttpBinding wsHttpBinding = new WSHttpBinding();
WSHttpSecurity whSecurity = wsHttpBinding.Security;
Dim wsHttpBinding As New WSHttpBinding()
Dim whSecurity As WSHttpSecurity = wsHttpBinding.Security

注釈

既定以外のセキュリティの種類を使用するには、WSHttpBinding(SecurityMode) コンストラクターを使用します。

適用対象