共用方式為


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
)

參數

  • clsid
    型別:System.Guid
    若要建立物件的 GUID
  • typeId
    型別:System.Guid
    使用指定的 System.Type 的 GUID assotiated

傳回值

型別:System.Object

.NET Framework 安全性

請參閱

參考

ModelingDocData 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間