ProvideXmlEditorChooserDesignerViewAttribute 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ProvideXmlEditorChooserDesignerViewAttribute 类的新实例。
public:
ProvideXmlEditorChooserDesignerViewAttribute(System::String ^ name, System::String ^ extension, System::Object ^ defaultLogicalViewEditorFactory, int xmlChooserPriority);
public:
ProvideXmlEditorChooserDesignerViewAttribute(Platform::String ^ name, Platform::String ^ extension, Platform::Object ^ defaultLogicalViewEditorFactory, int xmlChooserPriority);
ProvideXmlEditorChooserDesignerViewAttribute(std::wstring const & name, std::wstring const & extension, winrt::Windows::Foundation::IInspectable const & defaultLogicalViewEditorFactory, int xmlChooserPriority);
public ProvideXmlEditorChooserDesignerViewAttribute (string name, string extension, object defaultLogicalViewEditorFactory, int xmlChooserPriority);
new Microsoft.VisualStudio.Shell.ProvideXmlEditorChooserDesignerViewAttribute : string * string * obj * int -> Microsoft.VisualStudio.Shell.ProvideXmlEditorChooserDesignerViewAttribute
Public Sub New (name As String, extension As String, defaultLogicalViewEditorFactory As Object, xmlChooserPriority As Integer)
参数
- name
- String
XML 编辑器的注册表项名称,例如,"RESX"、"Silverlight"、"工作流" 等。
- extension
- String
自定义 XML 类型的文件扩展名,例如 "xaml"、"resx"、"xsd" 等。
- defaultLogicalViewEditorFactory
- Object
表示默认逻辑视图的编辑器工厂的类型、GUID 或字符串对象。
- xmlChooserPriority
- Int32
XML 选择器中扩展的优先级。 此值必须大于 XML 设计器的 EditorFactory 的扩展的优先级值。
例外
name或 extension 参数为 null 或为空。
defaultLogicalViewEditorFactory 参数为 null。