VirtualTypeBuilder.CreateType Method
Creates a virtual type based on the configuration of this virtual type builder.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Function CreateType As Type
public Type CreateType()
public:
Type^ CreateType()
member CreateType : unit -> Type
public function CreateType() : Type
Return Value
Type: Type
A created virtual type.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The virtual type builder is not completely configured. A virtual type builder must have a type name, a base type and an implementer to be considered completely configured. |
.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.