RegisterAsDslToolsEditorAttribute 类

定义

此属性用于标记使用Designer向导创建的 DSL 工具Designer。 它使Designer向导可以建议不要重新使用由其他非 DSLTools 设计器处理的文件扩展名,并使其能够删除旧的 DSL 设计器,而无需删除处理相同文件扩展名的其他包。

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

构造函数

RegisterAsDslToolsEditorAttribute()

此属性用于标记使用Designer向导创建的 DSL 工具Designer。 它使Designer向导可以建议不要重新使用由其他非 DSLTools 设计器处理的文件扩展名,并使其能够删除旧的 DSL 设计器,而无需删除处理相同文件扩展名的其他包。

属性

TypeId

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

将包注册为 DSL 工具。

Unregister(RegistrationAttribute+RegistrationContext)

删除 DSL 工具注册密钥。

适用于