NetMsmqBinding.Security プロパティ

定義

このバインディングに関連付けられている NetMsmqSecurity を取得または設定します。

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

プロパティ値

このバインディングに関連付けられている NetMsmqSecurity

次のコードは、 NetMsmqSecurity オブジェクトを取得する方法を示しています。

NetMsmqBinding binding = new NetMsmqBinding();
    NetMsmqSecurity security = binding.Security;

注釈

NetMsmqSecurity は、メッセージ キュー (MSMQ) トランスポートと SOAP セキュリティの両方のカプセル化です。 トランスポート セキュリティと SOAP セキュリティのどちらを有効にするかを指定し、有効な場合は、使用されている認証モードと保護レベルを指定します。

適用対象