共用方式為


VirtualTypeBuilder.BaseType Property

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

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

Syntax

'Declaration
Public Property BaseType As Type
public Type BaseType { get; set; }
public:
property Type^ BaseType {
    Type^ get ();
    void set (Type^ value);
}
member BaseType : Type with get, set
function get BaseType () : Type 
function set BaseType (value : Type)

Property Value

Type: Type
A Type that represents a base type from which the virtual type is derived.

Exceptions

Exception Condition
ArgumentNullException

The value passed is nulla null reference (Nothing in Visual Basic).

ArgumentException

The type passed has a UnderlyingSystemType that differs from the type, or if the type passed is a virtual type.

Remarks

A base type must be an actual runtime type, not another virtual type. The default value of the BaseType property is the Object type.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder Class

Microsoft.VisualStudio.Shell.Design Namespace