CorrelationToken 类

定义

注意

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

管理所有者活动的 CorrelationProperty 订阅。Manages the subscriptions of the CorrelationProperty to the owner activities. 此类不能被继承。This class cannot be inherited.

public ref class CorrelationToken sealed : System::Workflow::ComponentModel::DependencyObject
public sealed class CorrelationToken : System.Workflow.ComponentModel.DependencyObject
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class CorrelationToken : System.Workflow.ComponentModel.DependencyObject
type CorrelationToken = class
    inherit DependencyObject
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type CorrelationToken = class
    inherit DependencyObject
Public NotInheritable Class CorrelationToken
Inherits DependencyObject
继承
CorrelationToken
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。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.

构造函数

CorrelationToken()

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

CorrelationToken(String)

使用 CorrelationToken 的名称初始化 CorrelationToken 类的一个新实例。Initializes a new instance of the CorrelationToken class using the name of the CorrelationToken.

属性

DesignMode

获取一个值,该值指示此实例是处于设计模式还是运行时模式。Gets the value that indicates whether this instance is in design or run-time mode.

(继承自 DependencyObject)
Initialized

获取一个值,该值指示是否初始化 CorrelationTokenGets a value indicating whether the CorrelationToken is initialized.

Name

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

OwnerActivityName

获取或设置拥有相关标记的 Activity 的名称。Gets or sets the name of the Activity that owns the correlation token.

ParentDependencyObject

获取 DependencyObject 图中的父 DependencyObjectGets the parent DependencyObject in the DependencyObject graph.

(继承自 DependencyObject)
Properties

获取 CorrelationPropertyCorrelationToken 对象的集合。Gets the collection of CorrelationProperty objects in the CorrelationToken.

Site

获取或设置对 SiteDependencyObject 组件的引用。Gets or sets a reference to the Site component of the DependencyObject.

(继承自 DependencyObject)
UserData

获取一个 IDictionary,它将自定义数据与此类实例关联。Gets an IDictionary that associates custom data with this class instance.

(继承自 DependencyObject)

方法

AddHandler(DependencyProperty, Object)

DependencyObject 的事件添加处理程序。Adds a handler for an event of a DependencyObject.

(继承自 DependencyObject)
Dispose()

释放由 DependencyObject 占用的所有资源。Releases all the resources used by the DependencyObject.

(继承自 DependencyObject)
Dispose(Boolean)

释放非托管资源,还可以释放由 DependencyObject 占用的托管资源。Releases the unmanaged resources and optionally releases the managed resources used by DependencyObject.

(继承自 DependencyObject)
Equals(Object)

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

(继承自 Object)
GetBinding(DependencyProperty)

提供对与特定 ActivityBind 关联的 DependencyProperty 的访问。Provides access to the ActivityBind associated with the specific DependencyProperty.

(继承自 DependencyObject)
GetBoundValue(ActivityBind, Type)

检索作为 Object 的主题的 ActivityBindRetrieves the Object that is the subject of an ActivityBind.

(继承自 DependencyObject)
GetHashCode()

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

(继承自 Object)
GetInvocationList<T>(DependencyProperty)

获取一个数组,其中包含指定的 DependencyProperty 的委托。Gets an array that contains the delegates for the specified DependencyProperty.

(继承自 DependencyObject)
GetType()

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

(继承自 Object)
GetValue(DependencyProperty)

提供对指定的 DependencyProperty 的值的访问。Provides access to the value of the designated DependencyProperty.

(继承自 DependencyObject)
GetValueBase(DependencyProperty)

提供对 DependencyProperty 的绑定对象的访问,并跳过 GetValue(DependencyProperty) 重写。Provides access to the bound object of a DependencyProperty and bypasses the GetValue(DependencyProperty) override.

(继承自 DependencyObject)
Initialize(Activity, ICollection<CorrelationProperty>)

激发相关已初始化事件。Fires correlation initialized events.

InitializeProperties()

在派生类中重写时,对依赖属性执行初始化。Performs initialization on dependency properties when overridden in a derived class.

(继承自 DependencyObject)
IsBindingSet(DependencyProperty)

指示 DependencyProperty 的值是否设置为绑定。Indicates whether the value of a DependencyProperty is set as a binding. 请参阅 SetBinding(DependencyProperty, ActivityBind)See SetBinding(DependencyProperty, ActivityBind).

(继承自 DependencyObject)
MemberwiseClone()

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

(继承自 Object)
MetaEquals(DependencyObject)

确定此 metapropertiesDependencyObject 是否等于参数化的 metapropertiesDependencyObjectDetermines whether the metaproperties of this DependencyObject equals the metaproperties of the parameterized DependencyObject.

(继承自 DependencyObject)
RemoveHandler(DependencyProperty, Object)

从关联的 EventHandler 中移除 DependencyPropertyRemoves an EventHandler from an associated DependencyProperty.

(继承自 DependencyObject)
RemoveProperty(DependencyProperty)

DependencyProperty 中移除 DependencyObjectRemoves a DependencyProperty from the DependencyObject.

(继承自 DependencyObject)
SetBinding(DependencyProperty, ActivityBind)

为指定的 ActivityBind 设置 DependencyPropertySets the ActivityBind for the specified DependencyProperty.

(继承自 DependencyObject)
SetBoundValue(ActivityBind, Object)

设置目标 ActivityBind 的值。Sets the value of the target ActivityBind.

(继承自 DependencyObject)
SetReadOnlyPropertyValue(DependencyProperty, Object)

设置只读的 DependencyProperty 值。Sets the value of a DependencyProperty, which is read-only.

(继承自 DependencyObject)
SetValue(DependencyProperty, Object)

DependencyProperty 的值设置为对象。Sets the value of the DependencyProperty to the object.

(继承自 DependencyObject)
SetValueBase(DependencyProperty, Object)

通过跳过 DependencyProperty,将 Object 的值设置为指定的 SetValue(DependencyProperty, Object)Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue(DependencyProperty, Object).

(继承自 DependencyObject)
SubscribeForCorrelationTokenInitializedEvent(Activity, IActivityEventListener<CorrelationTokenEventArgs>)

CorrelationToken 订阅已初始化事件。Subscribes the CorrelationToken to the initialized event.

ToString()

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

(继承自 Object)
UnsubscribeFromCorrelationTokenInitializedEvent(Activity, IActivityEventListener<CorrelationTokenEventArgs>)

从已初始化事件取消订阅 CorrelationTokenUnsubscribes the CorrelationToken from the initialized event.

显式接口实现

IComponent.Disposed

表示处理组件的“Disposed”事件的方法。Represents the method that handles the Disposed event of a component.

(继承自 DependencyObject)

适用于