ProvideXmlEditorChooserDesignerViewAttribute 类

定义

用于向自定义 XML 设计器的 XML 选择器提供注册信息。

public ref class ProvideXmlEditorChooserDesignerViewAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideXmlEditorChooserDesignerViewAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideXmlEditorChooserDesignerViewAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideXmlEditorChooserDesignerViewAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideXmlEditorChooserDesignerViewAttribute
Inherits RegistrationAttribute
继承
ProvideXmlEditorChooserDesignerViewAttribute
属性

构造函数

ProvideXmlEditorChooserDesignerViewAttribute(String, String, Object, Int32)

ProvideXmlEditorChooserDesignerViewAttribute 的构造函数。

属性

CodeLogicalViewEditor

要与代码逻辑视图关联的编辑器工厂

DebuggingLogicalViewEditor

要与调试逻辑视图关联的编辑器工厂

DefaultNamespace

此编辑器支持的文档中使用的 XML 根元素默认命名空间。 如果指定了默认命名空间和命名空间,则两者中的匹配项都将限定文档。

DesignerLogicalViewEditor

要与设计器逻辑视图关联的编辑器工厂

IsDataSet

仅由数据集设计器使用的特殊值。

MatchExtensionAndNamespace

指示 XML 选择器是否应同时匹配文件扩展名和命名空间的布尔值。 如果为 false,XML 选择器将在扩展或命名空间上匹配。 如果指定了默认命名空间和命名空间,则两者中的匹配项都将限定文档。

Namespace

此编辑器支持的文档中使用的 XML 命名空间。 如果指定了默认命名空间和命名空间,则两者中的匹配项都将限定文档。

TextLogicalViewEditor

要与文本逻辑视图关联的编辑器工厂

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

将此属性注册到给定上下文。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此属性。

适用于