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
objectType
Type: TypeThe Type of the global type.
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
- 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.