ModelingDocData.CreateObject Method
Creates an object
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Déclaration
Protected Function CreateObject ( _
localRegistry As ILocalRegistry, _
clsid As Guid, _
typeId As Guid _
) As Object
protected Object CreateObject(
ILocalRegistry localRegistry,
Guid clsid,
Guid typeId
)
protected:
Object^ CreateObject(
ILocalRegistry^ localRegistry,
Guid clsid,
Guid typeId
)
member CreateObject :
localRegistry:ILocalRegistry *
clsid:Guid *
typeId:Guid -> Object
protected function CreateObject(
localRegistry : ILocalRegistry,
clsid : Guid,
typeId : Guid
) : Object
Parameters
- localRegistry
Type: Microsoft.VisualStudio.Shell.Interop.ILocalRegistry
Establishes a locally-registered COM object relative to the local Visual Studio registry hive
- clsid
Type: System.Guid
GUID of object to be created
- typeId
Type: System.Guid
GUID assotiated with specified System.Type
Return Value
Type: System.Object
.NET Framework Security
- 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.