Udostępnij za pośrednictwem


RegisterProjectItemAttribute Klasa

Definicja

Przestroga

RegisterProjectItemAttribute has been deprecated. Please use ProvideProjectItemAttribute instead.

RegisterProjectItemAttribute Zdeprecjonowana. Użyj ProvideProjectItemAttribute zamiast tego

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
Dziedziczenie
RegisterProjectItemAttribute
Atrybuty

Konstruktory

RegisterProjectItemAttribute(Object, String, String, Int32)
Przestarzałe.

Inicjuje nowe wystąpienie klasy RegisterProjectItemAttribute.

Właściwości

ItemType
Przestarzałe.

Ciąg opisujący typ elementu. Ten ciąg jest używany jako folder po lewej stronie okna dialogowego "Dodaj nowe elementy".

Priority
Przestarzałe.

Pobiera priorytet sortowania tego typu.

ProjectFactoryType
Przestarzałe.

Pobiera identyfikator GUID typu fabryki projektów.

TemplateDir
Przestarzałe.

Pobiera katalog, w którym znajdują się szablony dla tego typu projektu.

TypeId
Przestarzałe.

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z elementem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tej właściwości będzie musiał zastąpić tę właściwość tylko wtedy, gdy potrzebuje lepszej kontroli nad wystąpieniami, które można zastosować do klasy.

(Odziedziczone po RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)
Przestarzałe.

Pobiera ścieżkę rejestru (względem katalogu głównego rejestru aplikacji) pakietu VSPackage.

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)
Przestarzałe.

Rejestruje ten typ elementu.

Unregister(RegistrationAttribute+RegistrationContext)
Przestarzałe.

Wyrejestruj ten edytor.

Dotyczy