Share via


GlobalType.GetObjectType Method

Returns the type of this global type.

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

Syntax

'Declaration
Protected Overridable Function GetObjectType As Type
'Usage
Dim returnValue As Type 

returnValue = Me.GetObjectType()
protected virtual Type GetObjectType()
protected:
virtual Type^ GetObjectType()
protected function GetObjectType() : Type

Return Value

Type: System.Type
The Type of the GlobalType.

Remarks

The default implementation of the GetObjectType method simply returns the objectType parameter that was passed into the GlobalType constructor.

GetObjectType is called to initialize the ObjectType property when it is first accessed. Once retrieved the value is cached by ObjectType until the ClearObjectType method is called directly, or indirectly through another method such as PerformChange or PerformRemove.

.NET Framework Security

See Also

Reference

GlobalType Class

GlobalType Members

Microsoft.VisualStudio.Shell.Design Namespace

GlobalType

ObjectType

ClearObjectType

PerformChange

PerformRemove