创建对象
命名空间: Microsoft.VisualStudio.Modeling.Shell
程序集: Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)
语法
声明
Protected Function CreateObject ( _
localRegistry As ILocalRegistry, _
clsid As Guid, _
typeId As Guid _
) As Object
protected Object CreateObject(
ILocalRegistry localRegistry,
Guid clsid,
Guid typeId
)
参数
- localRegistry
类型:Microsoft.VisualStudio.Shell.Interop.ILocalRegistry
建立本地注册的 COM 对象相对于本地 Visual Studio 注册表项
- clsid
类型:System.Guid
要创建的对象的 GUID
- typeId
类型:System.Guid
GUID assotiated 使用指定的 System.Type
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。