共用方式為


ProvideXmlEditorChooserDesignerViewAttribute 建構函式

ProvideXmlEditorChooserDesignerViewAttribute 的建構函式。

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

語法

'宣告
Public Sub New ( _
    name As String, _
    extension As String, _
    defaultLogicalViewEditorFactory As Object, _
    xmlChooserPriority As Integer _
)
public ProvideXmlEditorChooserDesignerViewAttribute(
    string name,
    string extension,
    Object defaultLogicalViewEditorFactory,
    int xmlChooserPriority
)

參數

  • name
    型別:System.String
    登錄 keyName,XML 編輯器。例如"RESX 」,"Silverlight",「 工作流程 」 等...
  • extension
    型別:System.String
    您的自訂 XML 檔案的副檔名 (例如: 輸入 "xaml","resx 」,「 xsd")。
  • defaultLogicalViewEditorFactory
    型別:System.Object
    型別、 Guid 或字串物件,表示編輯器原廠預設值的邏輯檢視。
  • xmlChooserPriority
    型別:System.Int32
    XML 選擇器中的擴充功能的優先權。這個值必須大於 XML 設計工具的 EditorFactory 的擴充功能的優先權值。

.NET Framework 安全性

請參閱

參考

ProvideXmlEditorChooserDesignerViewAttribute 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間