NetTcpBinding.Security Właściwość
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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
Element NetTcpSecurity , który zawiera typy zabezpieczeń używane z tym powiązaniem. Domyślnym trybem zabezpieczeń dla elementu NetTCPBinding
jest Transport.
W tym przykładzie pokazano, jak uzyskać Security wartość.
NetTcpSecurity security = binding.Security;
Element NetTcpSecurity udostępnia typy zabezpieczeń i ustawień dostępnych dla elementu NetTcpBinding.
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
UWP | 10.0 |