This documentation is archived and is not being maintained.

AuthorizedType Class

Represents a set of types that are either allowed or disallowed in compiled workflows by the workflow compiler (depending on the value of the Authorized property). This class cannot be inherited.

System::Object
  System.Workflow.ComponentModel.Compiler::AuthorizedType

Namespace:  System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public ref class AuthorizedType sealed

The AuthorizedType type exposes the following members.

  NameDescription
Public methodAuthorizedTypeInitializes a new instance of the AuthorizedType class.
Top

  NameDescription
Public propertyAssemblyGets or sets the name of the assembly that contains the type(s) represented by this class.
Public propertyAuthorizedGets or sets the value that indicates whether the type designated by this class is authorized to participate in a workflow compilation.
Public propertyNamespaceGets or sets the name of the namespace of the type represented in this instance.
Public propertyRegularExpressionGets the Regex associated with this instance.
Public propertyTypeNameGets or sets the name of the type being represented by this instance.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

During the validation phase of workflow compilation, a workflow source document is rejected if it or the companion rules file directly references any .NET Framework types not present on a list of authorized types. The list of authorized types is an XML document where each entry indicates an Assembly, a Namespace, a TypeName, and an Authorized {true|false} indicator. This class corresponds to an entry on the list. Also note that wildcard character designations are allowed, to include or exclude complete namespaces. For example, using Type=”System.*” includes all types in System, including types contained in child namespaces.

The use of a list of authorized types is controlled by the WorkflowCompiler option '/checktypes'

.NET Framework

Supported in: 4, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: