Partager 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
protected virtual Type GetObjectType()
protected:
virtual Type^ GetObjectType()
abstract GetObjectType : unit -> Type  
override GetObjectType : unit -> Type
protected function GetObjectType() : Type

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Design Namespace

GlobalType

ObjectType

ClearObjectType

PerformChange

PerformRemove