WSHttpBinding.Security Eigenschaft

Definition

Ruft die Sicherheitseinstellungen ab, die mit dieser Bindung verwendet werden.Gets the security settings used with this binding.

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

Eigenschaftswert

Die mit dieser Bindung verwendete WSHttpSecurity.The WSHttpSecurity that is used with this binding. Der Standardwert der Mode-Eigenschaft ist Message.The default value Mode property is Message.

Beispiele

Im folgenden Beispiel wird das Abrufen des Werts von Security veranschaulicht.The following example shows how to obtain the value of the Security.

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.To use something other than the default security type, use the WSHttpBinding(SecurityMode) constructor.

Gilt für: