TypeProvider Class

 
Note: This API is now obsolete.

An implementation of ITypeProvider that acts as a container of types within the indicated assemblies and code compile units.

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

System.Object
  System.Workflow.ComponentModel.Compiler.TypeProvider

<ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>
Public NotInheritable Class TypeProvider
	Implements ITypeProvider, IServiceProvider, IDisposable

NameDescription
System_CAPS_pubmethodTypeProvider(IServiceProvider)

Initializes a new instance of the TypeProvider class.

NameDescription
System_CAPS_pubpropertyAssemblyNameResolver

Gets or sets the delegate that references a method with one parameter and one return value that returns the assembly display name in which a specified type belongs to.

System_CAPS_pubpropertyIsSupportedPropertyResolver

Gets or sets the delegate that references a method with two parameters and one return value that determines whether a specified property is supported in the target .NET Framework.

System_CAPS_pubpropertyLocalAssembly

Gets a value that represents the locally defined Assembly for this instance.

System_CAPS_pubpropertyReferencedAssemblies

Gets a collection of all assemblies referenced by the Type.

System_CAPS_pubpropertyTypeLoadErrors

Gets an IDictionary of load error exceptions keyed by the Object that causes the Exception.

NameDescription
System_CAPS_pubmethodAddAssembly(Assembly)

Adds an already-loaded assembly. It is the caller's responsibility to load the assembly, and TypeProvider includes the types from this assembly for dispensing when M:System.Workflow.ComponentModel.Compiler.TypeProvider.GetType is called.

System_CAPS_pubmethodAddAssemblyReference(String)

Adds a reference to the Assembly to the internal list. This assembly is used for the Type lookup in the GetType method.

System_CAPS_pubmethodAddCodeCompileUnit(CodeCompileUnit)

Adds a reference to the CodeCompileUnit to the internal list. This CodeCompileUnit is used for the Type lookup in the GetType method.

System_CAPS_pubmethodDispose()

Releases all resources used by the TypeProvider.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetAssemblyName(Type)

Returns the assembly display name of the assembly in which the specified type is declared.

System_CAPS_pubmethodSystem_CAPS_staticGetEnumNames(Type)

Provides a string array that contains the names for the specified Enum in indexed order.

System_CAPS_pubmethodSystem_CAPS_staticGetEventHandlerType(EventInfo)

Gets the Type of an EventHandler, given a reference to an EventInfo.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetService(Type)

Gets the Object that provides the designated service Type.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetType(String)

Gets the type from the set of assemblies added to the TypeProvider using AddAssembly, AddAssemblyReference, or AddCodeCompileUnit.

System_CAPS_pubmethodGetType(String, Boolean)

Gets the type from the set of assemblies added to the TypeProvider using AddAssembly, AddAssemblyReference, or AddCodeCompileUnit.

System_CAPS_pubmethodGetTypes()

Creates an array that contains each Type known to this instance.

System_CAPS_pubmethodSystem_CAPS_staticIsAssignable(Type, Type)

Indicates whether one type can be safely assigned to another type.

System_CAPS_pubmethodSystem_CAPS_staticIsEnum(Type)

Indicates whether a Type is of type Enum .

System_CAPS_pubmethodSystem_CAPS_staticIsSubclassOf(Type, Type)

Indicates whether a Type is a derived class of another Type .

System_CAPS_pubmethodIsSupportedProperty(PropertyInfo, Object)

Returns a value that determines whether the specified property is supported in the target .NET Framework.

System_CAPS_pubmethodRefreshCodeCompileUnit(CodeCompileUnit, EventHandler)

Updates the CodeCompileUnit reference associated with this instance.

System_CAPS_pubmethodRemoveAssembly(Assembly)

Removes all references to the subject Assembly from this instance.

System_CAPS_pubmethodRemoveAssemblyReference(String)

Removes a path-based Assembly reference from this instance.

System_CAPS_pubmethodRemoveCodeCompileUnit(CodeCompileUnit)

Removes all references to the subject CodeCompileUnit from this instance.

System_CAPS_pubmethodSetLocalAssembly(Assembly)

Sets the value of the local Assembly to the referenced Assembly .

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventTypeLoadErrorsChanged

Occurs when the collection TypeLoadErrors is modified.

System_CAPS_pubeventTypesChanged

Occurs when the collection of defined types is modified.

System_CAPS_noteNote

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

This ITypeProvider implementation, in addition to handling compiled assemblies (AddAssembly and AddAssemblyReference methods), can handle types that have not been compiled yet (AddCodeCompileUnit). The limited implementation of System.Type is returned for types referenced using CodeCompileUnit.

System_CAPS_noteNote

TypeProvider only returns public types from referenced assemblies, and both public and non-public types from local assemblies.

.NET Framework
Available since 3.0

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

Return to top
Show: