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
'宣言
Protected Overridable Function GetObjectType As Type
'使用
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.
Permissions
- 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.