创建一个对象
命名空间: Microsoft.VisualStudio.Modeling.Shell
程序集: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.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
建立一个相对于本地 Visual Studio 注册表配置单元本地注册的 COM 对象。
- clsid
类型:System.Guid
要创建的对象的 GUID。
- typeId
类型:System.Guid
与指定 System.Type 关联的 GUID。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。