Compartilhar via


VirtualTypeBuilder.DeclaringType Property

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

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

Syntax

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

Property Value

Type: Type
A Type that represents a DeclaringType.

Remarks

The DeclaringType is usually nulla null reference (Nothing in Visual Basic), but can point to another type to create a nested type.

.NET Framework Security

See Also

Reference

VirtualTypeBuilder Class

Microsoft.VisualStudio.Shell.Design Namespace