Export (0) Print
Expand All

ITypeProvider Interface

Note: This API is now obsolete.

Defines the behavior of a service that acts as a container of types.

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 interface ITypeProvider

The ITypeProvider type exposes the following members.

Public propertyLocalAssemblyTemporary assembly that is generated during the compilation process to validate the types in the active project that is being compiled.
Public propertyReferencedAssembliesGets a collection of all assemblies referenced by the Type.
Public propertyTypeLoadErrorsGets an IDictionary of load error exceptions keyed by the Object causing the Exception.

Public methodGetType(String)Gets the Type of the named entity.
Public methodGetType(String, Boolean)Gets the Type of the named entity.
Public methodGetTypesCreates and returns an array which contains each Type known to this instance.

Public eventTypeLoadErrorsChangedOccurs when the collection TypeLoadErrors is modified.
Public eventTypesChangedOccurs when the types in the type provider that implements this interface change. This can happen when an assembly or CodeCompileUnit is added or removed from the type provider.


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

ITypeProvider can be pushed as a WorkflowRuntime service to discover data types that are necessary for extensible Application Markup Language (XAML) workflow activation.

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5

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.

© 2014 Microsoft