Compartilhar via


GlobalType.ObjectType Property

Gets the checked type of the GlobalType.

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

Syntax

'Declaration
Public ReadOnly Property ObjectType As Type
public Type ObjectType { get; }
public:
property Type^ ObjectType {
    Type^ get ();
}
member ObjectType : Type with get
function get ObjectType () : Type

Property Value

Type: Type
The Type of the GlobalType.

Exceptions

Exception Condition
InvalidOperationException

The global object's type resolved to nulla null reference (Nothing in Visual Basic).

Remarks

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.

.NET Framework Security

See Also

Reference

GlobalType Class

Microsoft.VisualStudio.Shell.Design Namespace

GetObjectType

ClearObjectType

PerformChange

PerformRemove