NetTcpBinding.Security Właściwość

Definicja

Pobiera obiekt, który określa typ zabezpieczeń używanych z usługami skonfigurowanymi za pomocą tego powiązania.

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

Wartość właściwości

NetTcpSecurity

Element NetTcpSecurity , który zawiera typy zabezpieczeń używane z tym powiązaniem. Domyślnym trybem zabezpieczeń dla elementu NetTCPBinding jest Transport.

Przykłady

W tym przykładzie pokazano, jak uzyskać Security wartość.

NetTcpSecurity security = binding.Security;

Uwagi

Element NetTcpSecurity udostępnia typy zabezpieczeń i ustawień dostępnych dla elementu NetTcpBinding.

Dotyczy