VirtualTypeBuilder Class

 

Creates new virtual typea. This class cannot be inherited.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

System.Object
  Microsoft.VisualStudio.Shell.Design.VirtualTypeBuilder

public sealed class VirtualTypeBuilder

NameDescription
System_CAPS_pubmethodVirtualTypeBuilder()

Initializes a new instance of the VirtualTypeBuilder class.

NameDescription
System_CAPS_pubpropertyAssemblyName

Gets or sets the name of the assembly to which the virtual type should belong.

System_CAPS_pubpropertyAttributes

Gets the collection of Attributes for the virtual type.

System_CAPS_pubpropertyBaseType

Gets or sets the base type from which the virtual type is derived.

System_CAPS_pubpropertyConstructors

Gets a collection of constructors for this virtual type.

System_CAPS_pubpropertyDeclaringType

Gets or sets the declaring type for the resulting virtual type.

System_CAPS_pubpropertyEvents

Gets the collection of Events for the virtual type.

System_CAPS_pubpropertyFields

Gets the collection of Fields for the resulting virtual type.

System_CAPS_pubpropertyImplementor

Gets or sets the implementer that will be used for the resulting virtual type.

System_CAPS_pubpropertyIsPublic

Gets or sets a value indicating whether the resulting virtual type has the public access modifier.

System_CAPS_pubpropertyIsSerializable

Gets or sets whether the resulting virtual type is serializable.

System_CAPS_pubpropertyMethods

Gets the collection of methods for the resulting virtual type.

System_CAPS_pubpropertyProperties

Gets the collection of Properties for the virtual type.

System_CAPS_pubpropertyTypeName

Gets or sets the type name for the virtual type.

NameDescription
System_CAPS_pubmethodCreateType()

Creates a virtual type based on the configuration of this virtual type builder.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeFromType(ITypeResolutionService, CodeNamespace)

Initializes this virtual type builder with data obtained from the given type.

System_CAPS_pubmethodInitializeFromType(ITypeResolutionService, CodeTypeDeclaration)

Initializes this virtual type builder with data obtained from the given type.

System_CAPS_pubmethodInitializeFromType(ITypeResolutionService, CodeTypeDeclaration, String)

Initializes this virtual type builder with data obtained from the given type.

System_CAPS_pubmethodToString()

(Inherited from Object.)

This class produces new virtual types. A builder pattern is used to implement this class because the creation of a new virtual type requires extensive object configuration by defining properties, methods, and events. When the type’s configuration process is completed, call the CreateType method to create a new virtual type.

VirtualTypeBuilder builds a type either by accepting direct additions and removals from its various member collections or by initializing it from a Code Document Object Model (CodeDOM) CodeTypeDeclaration.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: