NetTcpBinding.Security 屬性

定義

取得物件,指定與此繫結所設定之服務共用的安全性類型。

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

屬性值

NetTcpSecurity

包含與此繫結共用之安全性類型的 NetTcpSecurityNetTCPBinding 的預設安全性模式為 Transport

範例

這個範例會示範如何取得 Security 值。

NetTcpSecurity security = binding.Security;

備註

提供 可使用的安全性類型與設定。

適用於