Share via


GlobalType Constructor

Initializes a new instance of GlobalType.

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

Syntax

'Declaration
Protected Sub New ( _
    objectType As Type _
)
protected GlobalType(
    Type objectType
)
protected:
GlobalType(
    Type^ objectType
)
new : 
        objectType:Type -> GlobalType
protected function GlobalType(
    objectType : Type
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

objectType is nulla null reference (Nothing in Visual Basic).

Remarks

The GlobalType constructor caches the value of the objectType parameter so that, on demand, it is checked and assigned to the ObjectType property.

The constructor is not public because global types are not meant to be created directly. Instead, as is done in the derived class GlobalObject, an Instance method should be supplied for this purpose.

.NET Framework Security

See Also

Reference

GlobalType Class

Microsoft.VisualStudio.Shell.Design Namespace

ObjectType

Instance