Export (0) Print
Expand All

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.

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

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

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class TypeProvider : ITypeProvider, 
	IServiceProvider, IDisposable

The TypeProvider type exposes the following members.

  NameDescription
Public methodTypeProviderInitializes a new instance of the TypeProvider class.
Top

  NameDescription
Public propertyAssemblyNameResolverGets 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.
Public propertyIsSupportedPropertyResolverGets 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.
Public propertyLocalAssemblyGets a value that represents the locally defined Assembly for this instance.
Public propertyReferencedAssembliesGets a collection of all assemblies referenced by the Type.
Public propertyTypeLoadErrorsGets an IDictionary of load error exceptions keyed by the Object that causes the Exception.
Top

  NameDescription
Public methodAddAssemblyAdds 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 GetType is called.
Public methodAddAssemblyReferenceAdds a reference to the Assembly to the internal list. This assembly is used for the Type lookup in the GetType method.
Public methodAddCodeCompileUnitAdds a reference to the CodeCompileUnit to the internal list. This CodeCompileUnit is used for the Type lookup in the GetType method.
Public methodDisposeReleases all resources used by the TypeProvider.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetAssemblyNameReturns the assembly display name of the assembly in which the specified type is declared.
Public methodStatic memberGetEnumNamesProvides a string array that contains the names for the specified Enum in indexed order.
Public methodStatic memberGetEventHandlerTypeGets the Type of an EventHandler, given a reference to an EventInfo.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetServiceGets the Object that provides the designated service Type.
Public methodGetType()Gets the Type of the current instance. (Inherited from Object.)
Public methodGetType(String)Gets the type from the set of assemblies added to the TypeProvider using AddAssembly, AddAssemblyReference, or AddCodeCompileUnit.
Public methodGetType(String, Boolean)Gets the type from the set of assemblies added to the TypeProvider using AddAssembly, AddAssemblyReference, or AddCodeCompileUnit.
Public methodGetTypesCreates an array that contains each Type known to this instance.
Public methodStatic memberIsAssignableIndicates whether one type can be safely assigned to another type.
Public methodStatic memberIsEnumIndicates whether a Type is of type Enum .
Public methodStatic memberIsSubclassOfIndicates whether a Type is a derived class of another Type .
Public methodIsSupportedPropertyReturns a value that determines whether the specified property is supported in the target .NET Framework.
Public methodRefreshCodeCompileUnitUpdates the CodeCompileUnit reference associated with this instance.
Public methodRemoveAssemblyRemoves all references to the subject Assembly from this instance.
Public methodRemoveAssemblyReferenceRemoves a path-based Assembly reference from this instance.
Public methodRemoveCodeCompileUnitRemoves all references to the subject CodeCompileUnit from this instance.
Public methodSetLocalAssemblySets the value of the local Assembly to the referenced Assembly .
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventTypeLoadErrorsChangedOccurs when the collection TypeLoadErrors is modified.
Public eventTypesChangedOccurs when the collection of defined types is modified.
Top

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.

NoteNote

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

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.5.3

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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:
© 2014 Microsoft