RegisterProjectItemAttribute 类

定义

注意

RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.

public ref class RegisterProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class RegisterProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Obsolete("RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.")]
public sealed class RegisterProjectItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.")>]
type RegisterProjectItemAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class RegisterProjectItemAttribute
Inherits RegistrationAttribute
继承
RegisterProjectItemAttribute
属性

构造函数

RegisterProjectItemAttribute(Object, String, String, Int32)
已过时.

初始化 RegisterProjectItemAttribute 的新实例。

属性

ItemType
已过时.

描述项类型的字符串。 此字符串用作“添加新项”对话框左侧的文件夹。

Priority
已过时.

获取此类型的排序优先级。

ProjectFactoryType
已过时.

获取项目工厂类型的 GUID。

TemplateDir
已过时.

获取在其中找到此项目类型的模板的目录。

TypeId
已过时.

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

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)
已过时.

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

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)
已过时.

注册此项类型。

Unregister(RegistrationAttribute+RegistrationContext)
已过时.

取消注册此编辑器。

适用于