ProvideXmlEditorChooserDesignerViewAttribute Constructor
Initializes a new instance of the ProvideXmlEditorChooserDesignerViewAttribute class.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.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
)
public:
ProvideXmlEditorChooserDesignerViewAttribute(
String^ name,
String^ extension,
Object^ defaultLogicalViewEditorFactory,
int xmlChooserPriority
)
new :
name:string *
extension:string *
defaultLogicalViewEditorFactory:Object *
xmlChooserPriority:int -> ProvideXmlEditorChooserDesignerViewAttribute
public function ProvideXmlEditorChooserDesignerViewAttribute(
name : String,
extension : String,
defaultLogicalViewEditorFactory : Object,
xmlChooserPriority : int
)
Parameters
name
Type: StringRegistry key name for your XML editor, for example, "RESX", "Silverlight", "Workflow", and so on.
extension
Type: StringFile extension for your custom XML type, for example, "xaml", "resx", "xsd", and so on.
defaultLogicalViewEditorFactory
Type: ObjectA Type, GUID, or String object representing the editor factory for the default logical view.
xmlChooserPriority
Type: Int32Priority 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.