ExtensionManager.InstantiateType<T> Method (Type)
Instantiates a type and casts it as an interface.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Shared Function InstantiateType(Of T) ( _
type As Type _
) As T
public static T InstantiateType<T>(
Type type
)
public:
generic<typename T>
static T InstantiateType(
Type^ type
)
static member InstantiateType :
type:Type -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
Parameters
- type
Type: System.Type
A Type that is not an extension.
Return Value
Type: T
A Type cast as an interface.
Remarks
This helper method is used to instantiate the Designer types for Generators; designers are not extensions, but they are custom types that the user defines. To instantiate extensions, use the Instantiate method to create a new instance of an extension.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.