This documentation is archived and is not being maintained.

VirtualTypeBuilder Class

Creates new virtual typea. This class cannot be inherited.

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

public sealed class VirtualTypeBuilder
public final class VirtualTypeBuilder
public final class VirtualTypeBuilder

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.