NetMsmqSecurity NetMsmqSecurity NetMsmqSecurity NetMsmqSecurity Class

定义

使用 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
继承
NetMsmqSecurityNetMsmqSecurityNetMsmqSecurityNetMsmqSecurity

示例

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() NetMsmqSecurity() NetMsmqSecurity()

初始化 NetMsmqSecurity 类的新实例。Initializes a new instance of the NetMsmqSecurity class.

属性

Message Message Message Message

获取或设置与 MessageSecurityOverMsmq 绑定关联的 NetMsmqBindingGets or sets the MessageSecurityOverMsmq that is associated with the NetMsmqBinding binding.

Mode Mode Mode Mode

获取或设置与 NetMsmqSecurityMode 绑定关联的 NetMsmqBindingGets or sets the NetMsmqSecurityMode that is associated with the NetMsmqBinding binding.

Transport Transport Transport Transport

获取或设置与 MsmqTransportSecurity 绑定关联的 NetMsmqBindingGets or sets the MsmqTransportSecurity that is associated with the NetMsmqBinding binding.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于