WorkflowCompilationContext 类

定义

警告

此 API 现已过时。

为当前的编译或验证任务提供工作流编译选项。Provides workflow compilation options for the current compilation or validation task.

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

注解

备注

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

只可使用 CreateScope 方法在范围基础上创建此类。This class can only be created on a scope basis, using the CreateScope method.

属性

CheckTypes

获取一个值,该值指示是否在当前范围上启用 CheckTypesGets a value that indicates whether CheckTypes is enabled at the current scope.

Current

获取在当前范围可用的 WorkflowCompilationContextGets the WorkflowCompilationContext that is available at the current scope.

Language

获取在当前范围可用的工作流编译器选项 LanguageGets the workflow compiler options Language that is available at the current scope.

RootNamespace

获取在当前范围可用的工作流编译器选项 RootNamespaceGets the workflow compiler options RootNamespace that is available at the current scope.

方法

CreateScope(IServiceProvider)

在当前范围初始化 WorkflowCompilationContext 类。Initializes a WorkflowCompilationContext class at the current scope.

Equals(Object)

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

(继承自 Object)
GetAuthorizedTypes()

返回在已编译工作流中编译器允许的类型列表。Returns a list of types that the compiler allows in compiled workflows.

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)

适用于