Share via


ProvideProjectItemAttribute Třída

Definice

Tento atribut registruje položky, které mají být zahrnuty do dialogového okna Přidat novou položku pro zadaný typ projektu. Umístí se do balíčku VSPackage.

public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideProjectItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideProjectItemAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideProjectItemAttribute
Inherits RegistrationAttribute
Dědičnost
ProvideProjectItemAttribute
Atributy

Konstruktory

ProvideProjectItemAttribute(Object, String, String, Int32)

Inicializuje novou instanci ProvideProjectItemAttribute pro položku.

Vlastnosti

ItemType

Řetězec popisující typ položky. Tento řetězec se používá jako složka v levé části dialogového okna Přidat nové položky.

Priority

Získá prioritu řazení tohoto typu.

ProjectFactoryType

Získá identifikátor GUID typu objektu pro vytváření projektů.

TemplateDir

Získá adresář, ve kterém jsou nalezeny šablony pro tento typ projektu.

TypeId

Přepište vlastnost TypeID, aby odvozené třídy RegistrationAttribute fungovaly se System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto atributu bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Získá cestu registru (vzhledem ke kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Zaregistruje tento typ položky.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušte registraci tohoto editoru.

Platí pro