次の方法で共有


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

'宣言
Protected Sub New ( _
    objectType As Type _
)
protected GlobalType(
    Type objectType
)

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