GlobalObject.CreateInstance Method

Creates a cached instance of the global object.

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

Syntax

‘선언
Protected Overridable Function CreateInstance As Object
‘사용 방법
Dim returnValue As Object

returnValue = Me.CreateInstance()
protected virtual Object CreateInstance()
protected:
virtual Object^ CreateInstance()
abstract CreateInstance : unit -> Object 
override CreateInstance : unit -> Object 
protected function CreateInstance() : Object

Return Value

Type: System.Object
An Object that represents an instance of the global object class.

Remarks

The CreateInstance method is a helper method, called by the Instance property to create a cached instance of the global object. The caller should validate that the instance returned is serializable. The default implementation of this method calls TypeDescriptor.CreateInstance to create an instance of the global object.

.NET Framework Security

See Also

Reference

GlobalObject Class

GlobalObject Members

Microsoft.VisualStudio.Shell.Design Namespace

Instance

Created

TypeDescriptor.CreateInstance