Freigeben über


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
'Usage
Dim instance As VirtualTypeBuilder
Dim returnValue As Type

returnValue = instance.CreateType()
public Type CreateType()
public:
Type^ CreateType()
member CreateType : unit -> Type 
public function CreateType() : Type

Return Value

Type: System.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

See Also

Reference

VirtualTypeBuilder Class

VirtualTypeBuilder Members

Microsoft.VisualStudio.Shell.Design Namespace