WorkflowIdentity 类
定义
将保留的工作流实例映射到其对应的工作流定义。Maps a persisted workflow instance to its corresponding workflow definition.
public ref class WorkflowIdentity : IEquatable<System::Activities::WorkflowIdentity ^>
[System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.WorkflowIdentityConverter))]
[System.Runtime.Serialization.DataContract]
[System.Serializable]
public class WorkflowIdentity : IEquatable<System.Activities.WorkflowIdentity>
[<System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.WorkflowIdentityConverter))>]
[<System.Runtime.Serialization.DataContract>]
[<System.Serializable>]
type WorkflowIdentity = class
interface IEquatable<WorkflowIdentity>
Public Class WorkflowIdentity
Implements IEquatable(Of WorkflowIdentity)
- 继承
-
WorkflowIdentity
- 属性
- 实现
注解
此类支持 Windows Workflow Foundation 的版本控制和动态更新功能。This class supports the versioning and dynamic update functionality of Windows Workflow Foundation. 有关工作流版本控制、工作流标识和动态更新的详细信息,请参阅以下主题:For more information about workflow versioning, workflow identity, and dynamic update, see the following topics:
工作流版本控制Workflow Versioning
描述在中引入的工作流版本控制功能 .NET Framework 4.5.NET Framework 4.5 。Describes the workflow versioning functionality introduced in .NET Framework 4.5.NET Framework 4.5.动态更新Dynamic Update
介绍如何使用动态更新来更新持久工作流实例的工作流定义。Describes how to update the workflow definition of a persisted workflow instance by using dynamic update.使用 WorkflowApplication 标识和版本控制Using WorkflowApplication Identity and Versioning
介绍如何使用 WorkflowIdentity 并行承载工作流的多个版本。Describes how to use WorkflowIdentity to host multiple versions of a workflow side-by-side.WorkflowServiceHost 中的并行版本控制Side by Side Versioning in WorkflowServiceHost
介绍如何在单个终结点上托管多个版本的工作流。Describes how to host multiple versions of a workflow on a single endpoint.如何:并行承载多个版本的工作流How to: Host Multiple Versions of a Workflow Side-by-Side
入门教程中的此步骤演示如何更新工作流定义,并同时使用旧定义和新定义来承载工作流。This step in the Getting Started Tutorial demonstrates updating a workflow definition, and hosting workflows using both the old and new definition at the same time.如何:更新正在运行的工作流实例的定义How to: Update the Definition of a Running Workflow Instance
入门教程中的此步骤演示如何更新持久性工作流实例以使用新的工作流定义。This step in the Getting Started Tutorial demonstrates updating persisted workflow instances to use a new workflow definition.
构造函数
WorkflowIdentity() |
初始化 WorkflowIdentity 类的新实例。Initializes a new instance of the WorkflowIdentity class. |
WorkflowIdentity(String, Version, String) |
使用名称、版本和包初始化 WorkflowIdentity 类的新实例。Initializes a new instance of the WorkflowIdentity class using the name, version, and package. |
属性
Name |
获取或设置工作流标识的名称。Gets or sets the name of the workflow identity. |
Package |
获取或设置工作流标识的包。Gets or sets the package of the workflow identity. |
Version |
获取或设置工作流标识的版本。Gets or sets the version of the workflow identity. |
方法
Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. |
Equals(WorkflowIdentity) |
确定当前的 WorkflowIdentity 和指定的 WorkflowIdentity 相同。Determines whether the current WorkflowIdentity and the specified WorkflowIdentity are the same. |
GetHashCode() |
返回此工作流标识的哈希代码。Returns the hash code for this workflow identity. |
GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
Parse(String) |
转换 WorkflowIdentity 的字符串表示形式。Converts the string representation of the WorkflowIdentity. |
ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. |
TryParse(String, WorkflowIdentity) |
分析字符串并创建 WorkflowIdentity 的新实例。Parses the string and creates a new instance of a WorkflowIdentity. |