RegisterAdditionalEditorExtensionAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
特性类,提供一种在不更改任何其他内容的情况下向现有编辑器添加额外文件扩展名处理的方法
public ref class RegisterAdditionalEditorExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class RegisterAdditionalEditorExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class RegisterAdditionalEditorExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type RegisterAdditionalEditorExtensionAttribute = class
inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type RegisterAdditionalEditorExtensionAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class RegisterAdditionalEditorExtensionAttribute
Inherits RegistrationAttribute
- 继承
- 属性
构造函数
| RegisterAdditionalEditorExtensionAttribute(Object, String, Int32) |
创建新的 RegisterAdditionalEditorExtensionAttribute。 |
属性
| Extension |
要注册的文件扩展名。 |
| Factory |
标识要注册的编辑器工厂的 Guid。 |
| Priority |
要注册的扩展的此编辑器的优先级。 值越大,表示编辑器优先级越高。 |
| TypeId |
重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。 (继承自 RegistrationAttribute) |
方法
| GetPackageRegKeyPath(Guid) |
获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。 (继承自 RegistrationAttribute) |
| Register(RegistrationAttribute+RegistrationContext) |
注册其他编辑器。 |
| Unregister(RegistrationAttribute+RegistrationContext) |
注销编辑器 |