NetMsmqSecurity 類別

定義

NetMsmqSecurity 類別會封裝在使用 NetMsmqBinding 繫結時可用的 MSMQ 安全性功能。The NetMsmqSecurity class encapsulates the MSMQ security features available when using the NetMsmqBinding binding.

public ref class NetMsmqSecurity sealed
public sealed class NetMsmqSecurity
type NetMsmqSecurity = class
Public NotInheritable Class NetMsmqSecurity
繼承
NetMsmqSecurity

範例

NetMsmqBinding binding = new NetMsmqBinding();
NetMsmqSecurity security = binding.Security;
Dim binding As New NetMsmqBinding()
Dim security = binding.Security

備註

這個型別的物件是藉由建立 NetMsmqBinding 繫結的執行個體來建立的。Objects of this type are created by creating an instance of the NetMsmqBinding binding. 然後您可以使用這個物件來參考與 NetMsmqBinding 繫結有關的所有不同安全性設定。You can then use this object to reference all of the various security settings related to the NetMsmqBinding binding.

建構函式

NetMsmqSecurity()

初始化 NetMsmqSecurity 類別的新執行個體。Initializes a new instance of the NetMsmqSecurity class.

屬性

Message

取得或設定與 MessageSecurityOverMsmq 繫結相關聯的 NetMsmqBindingGets or sets the MessageSecurityOverMsmq that is associated with the NetMsmqBinding binding.

Mode

取得或設定與 NetMsmqSecurityMode 繫結相關聯的 NetMsmqBindingGets or sets the NetMsmqSecurityMode that is associated with the NetMsmqBinding binding.

Transport

取得或設定與 MsmqTransportSecurity 繫結相關聯的 NetMsmqBindingGets or sets the MsmqTransportSecurity that is associated with the NetMsmqBinding binding.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於