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
'宣告
Public Property BaseType As Type
public Type BaseType { get; set; }
Property Value
Type: System.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
- 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.