Compartilhar via


ProvideXmlEditorChooserDesignerViewAttribute Constructor

Initializes a new instance of the ProvideXmlEditorChooserDesignerViewAttribute class.

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

Syntax

'Declaração
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
)

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.

Exceptions

Exception Condition
ArgumentException

The name or extension parameters are null or empty.

ArgumentNullException

The defaultLogicalViewEditorFactory parameter is null.

.NET Framework Security

See Also

Reference

ProvideXmlEditorChooserDesignerViewAttribute Class

Microsoft.VisualStudio.Shell Namespace