ProvideXmlEditorChooserDesignerViewAttribute Constructor (String^, String^, Object^, Int32)

 

Initializes a new instance of the ProvideXmlEditorChooserDesignerViewAttribute class.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
ProvideXmlEditorChooserDesignerViewAttribute(
	String^ name,
	String^ extension,
	Object^ defaultLogicalViewEditorFactory,
	int xmlChooserPriority
)

Parameters

name
Type: System::String^

Registry key name for your XML editor, for example, "RESX", "Silverlight", "Workflow", and so on.

extension
Type: System::String^

File extension for your custom XML type, for example, "xaml", "resx", "xsd", and so on.

defaultLogicalViewEditorFactory
Type: System::Object^

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

xmlChooserPriority
Type: System::Int32

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.

Exception Condition
ArgumentException

The name or extension parameters are null or empty.

ArgumentNullException

The defaultLogicalViewEditorFactory parameter is null.

Return to top
Show: