AuthorizedType 类

定义

注意

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

表示已编译的工作流中被工作流编译器允许或禁止(取决于 Authorized 属性的值)的一组类型。 此类不能被继承。

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

注解

备注

本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型

在工作流编译的验证阶段,如果工作流源文档或伴随规则文件直接引用了授权的类型列表中不存在的任何 .NET Framework 类型,则该工作流源文档将被拒绝。 授权类型列表是一个 XML 文档,其中每个条目表示一个 Assembly 、、 Namespace 一个 TypeName 和一个授权的 { true|false } 指示器。 此类与列表上的一项对应。 另外请注意,允许指定通配符以包括或排除完整的命名空间。 例如,使用 Type="System.*" 包括中的所有类型 System ,包括子命名空间中包含的类型。

授权类型列表的使用受 WorkflowCompiler 选项 '/checktypes' 的控制。

构造函数

AuthorizedType()

初始化 AuthorizedType 类的新实例。

属性

Assembly

获取或设置包含由此类表示类型的程序集的名称。

Authorized

获取或设置一个值,该值指示是否授权此类指定的类型参与工作流编译。

Namespace

获取或设置此实例中表示的类型的命名空间的名称。

RegularExpression

获取与此实例关联的 Regex

TypeName

获取或设置由此实例表示的类型的名称。

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)

适用于