ModelingDocData.CreateObject 方法
建立物件
命名空間: 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
使用指定的 System.Type 的 GUID assotiated
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。