MessageEventSubscription 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

创建消息事件订阅以将消息路由到相应的工作流实例。Creates a message event subscription to route messages to the appropriate workflow instance.

public ref class MessageEventSubscription
[System.Serializable]
public class MessageEventSubscription
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class MessageEventSubscription
[<System.Serializable>]
type MessageEventSubscription = class
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type MessageEventSubscription = class
Public Class MessageEventSubscription
继承
MessageEventSubscription
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

构造函数

MessageEventSubscription()

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

MessageEventSubscription(IComparable, Guid)

使用指定的队列名称和实例 ID 初始化 MessageEventSubscription 类的新实例。Initializes a new instance of the MessageEventSubscription class using a specified queue name and instance ID.

MessageEventSubscription(IComparable, Guid, Guid)

使用指定的队列名称、实例 ID 和订阅 ID 初始化 MessageEventSubscription 类的新实例。Initializes a new instance of the MessageEventSubscription class using a specified queue name, instance ID, and subscription ID.

MessageEventSubscription(IComparable, Guid, Type, String)

使用指定的队列名称、订阅 ID、接口类型和操作名称初始化 MessageEventSubscription 类的新实例。Initializes a new instance of the MessageEventSubscription class using a specified queue name, subscription ID, interface type, and operation name.

MessageEventSubscription(IComparable, Guid, Type, String, Guid)

使用指定的队列名称、实例 ID、接口类型、操作和订阅 ID 初始化 MessageEventSubscription 类的新实例。Initializes a new instance of the MessageEventSubscription class using a specified queue name, instance ID, interface type, operation, and a subscription ID.

属性

CorrelationProperties

获取消息的相关属性集合,这些属性会将传入消息与 HandleExternalEventActivity 映射在一起。Gets the collection of correlation properties for the message that will map the incoming message together with the HandleExternalEventActivity.

InterfaceType

获取或设置接口类型。Gets or sets the interface type.

MethodName

获取或设置方法的名称。Gets or sets the name of the method.

QueueName

获取或设置此订阅所属的队列的名称。Gets or sets the name of the queue to which this subscription belongs.

SubscriptionId

获取或设置此订阅的唯一标识符。Gets or sets the unique identifier for this subscription.

WorkflowInstanceId

获取或设置为其创建此订阅的工作流的 InstanceIdGets or sets the InstanceId of the workflow for which this subscription was created.

方法

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)

适用于