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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。