共用方式為


DocData 建構函式

初始化 DocData 類別的新執行個體。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Protected Sub New ( _
    serviceProvider As IServiceProvider, _
    editorId As Guid _
)
protected DocData(
    IServiceProvider serviceProvider,
    Guid editorId
)

參數

  • serviceProvider
    型別:System.IServiceProvider
    這個類別的本機服務提供者。這個服務提供者擷取 Visual Studio 的選取項目。
  • editorId
    型別:System.Guid
    使用編輯器工廠識別碼。

備註

編輯器工廠實作GetGuidEditorType

.NET Framework 安全性

請參閱

參考

DocData 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間