NetTcpBinding.Security 屬性
定義
取得物件,指定與此繫結所設定之服務共用的安全性類型。Gets an object that specifies the type of security used with services configured with this binding.
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。The NetTcpSecurity that contains the types of security used with this binding. NetTCPBinding
的預設安全性模式為 Transport。The default mode of security for the NetTCPBinding
is Transport.
範例
這個範例會示範如何取得 Security 值。This example shows how to get the Security value.
NetTcpSecurity security = binding.Security;
備註
提供 可使用的安全性類型與設定。The NetTcpSecurity provides the types of security and settings available to the NetTcpBinding.