GlobalType.ObjectType Property
Visual Studio 2008
Gets the checked type of the GlobalType.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | The global object's type resolved to null. |
The ObjectType property calls the GetObjectType method to resolve the type of the current GlobalType. This call occurs during the first access of the property, and the value is cached until the global type is reset by a call to the ClearObjectType, PerformChange, or PerformRemove methods.
- 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.