Bagikan melalui


NetTcpBinding.Security Properti

Definisi

Mendapatkan objek yang menentukan jenis keamanan yang digunakan dengan layanan yang dikonfigurasi dengan pengikatan ini.

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

Nilai Properti

NetTcpSecurity yang berisi jenis keamanan yang digunakan dengan pengikatan ini. Mode keamanan default untuk NetTCPBinding adalah Transport.

Contoh

Contoh ini menunjukkan cara mendapatkan nilainya Security .

NetTcpSecurity security = binding.Security;

Keterangan

NetTcpSecurity menyediakan jenis keamanan dan pengaturan yang NetTcpBindingtersedia untuk .

Berlaku untuk