ProvideXmlEditorChooserDesignerViewAttribute 类

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

继承层次结构

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Modeling.Shell.ProvideXmlEditorChooserDesignerViewAttribute

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideXmlEditorChooserDesignerViewAttribute _
    Inherits RegistrationAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideXmlEditorChooserDesignerViewAttribute : RegistrationAttribute

ProvideXmlEditorChooserDesignerViewAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 ProvideXmlEditorChooserDesignerViewAttribute ProvideXmlEditorChooserDesignerViewAttribute 的构造函数。

页首

属性

  名称 说明
公共属性 CodeLogicalViewEditor 与代码逻辑视图关联的编辑工厂
公共属性 DebuggingLogicalViewEditor 与调试逻辑视图关联的编辑工厂
公共属性 DefaultLogicalView 默认逻辑视图的编辑工厂的唯一的 ID 。
公共属性 DesignerLogicalViewEditor 与设计器逻辑视图关联的编辑工厂
公共属性 Extension 自定义 XML 类型 (即“xaml”、“Resource”、“xsd”) 文件扩展名。
公共属性 IsDataSet 仅由 DataSet 设计器使用的特殊值。
公共属性 MatchExtensionAndNamespace 布尔值指示 XML 选择器是否应同时与文件扩展和命名空间匹配。如果为 false,则 XML 选择器将在扩展或命名空间上进行匹配。
公共属性 Name 您的XML 编辑器的注册表键名。例如 “RESX”,“Silverlight”,“Workflow”,等。
公共属性 Namespace 文档中用于编辑器支持的 XML 命名空间。
公共属性 TextLogicalViewEditor 与文本逻辑视图关联的编辑工厂
公共属性 TypeId (继承自 RegistrationAttribute。)
公共属性 XmlChooserPriority XML 选择器的扩展名的优先级。此值必须大于 XML 设计器的 EditorFactory 的扩展优先值

页首

方法

  名称 说明
公共方法 Equals 基础结构。返回一个值,该值指示此实例是否与指定的对象相等。 (继承自 Attribute。)
公共方法 GetHashCode 返回此实例的哈希代码。 (继承自 Attribute。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsDefaultAttribute 当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (继承自 Attribute。)
公共方法 Match 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (继承自 Attribute。)
公共方法 Register 注册设计器为特定扩展的一个潜在的编辑器 (重写 RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext)。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 Unregister 注销设计器为特定扩展的一个潜在的编辑器 (重写 RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext)。)

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfo 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.Invoke 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.Shell 命名空间