Freigeben über


WSHttpBinding.Security Eigenschaft

Definition

Ruft die Sicherheitseinstellungen ab, die mit dieser Bindung verwendet werden.

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

Eigenschaftswert

Die mit dieser Bindung verwendete WSHttpSecurity. Der Standardwert der Mode-Eigenschaft ist Message.

Beispiele

Im folgenden Beispiel wird das Abrufen des Werts von Security veranschaulicht.

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

Hinweise

Wenn Sie statt dem Standardsicherheitstyp einen anderen Typ einsetzen möchten, verwenden Sie den WSHttpBinding(SecurityMode)-Konstruktor.

Gilt für: