语言

NetMsmqSecurity 类

定义

该 NetMsmqSecurity 类封装使用 NetMsmqBinding 绑定时可用的 MSMQ 安全功能。

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 实例来创建此类型的对象。 然后,可以使用此对象引用与绑定相关的 NetMsmqBinding 所有各种安全设置。

构造函数

名称 说明
NetMsmqSecurity()

初始化 NetMsmqSecurity 类的新实例。

属性

名称 说明
Message

获取或设置 MessageSecurityOverMsmq 与 NetMsmqBinding 绑定关联的项。

Mode

获取或设置 NetMsmqSecurityMode 与 NetMsmqBinding 绑定关联的项。

Transport

获取或设置 MsmqTransportSecurity 与 NetMsmqBinding 绑定关联的项。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于