다음을 통해 공유


ProvideXmlEditorChooserDesignerViewAttribute Constructor

Definition

Constructor for 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)

Parameters

name
String

The registry keyName for your XML editor. For example "RESX", "Silverlight", "Workflow", etc...

extension
String

The file extension for your custom XML type (e.g. "xaml", "resx", "xsd").

defaultLogicalViewEditorFactory
Object

A Type, Guid, or String object representing the editor factory for the default logical view.

xmlChooserPriority
Int32

The priority of the extension in the XML Chooser. This value must be greater than the extension's priority value for the XML designer's EditorFactory.

Exceptions

The name or extension parameters are null or empty.

The defaultLogicalViewEditorFactory parameter is null.

Applies to