Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Declaration
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.