WebSiteProjectAttribute Třída

Definice

Tento atribut přidá ProjectSubType do seznamu, který je definován jako ProjectSubTypes pro projekt webu.

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

Poznámky

Příklad: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\(*version*)\Projects\ {E24C65DC-7377-472B-9ABA-BC803B73C61A}\ProjectSubType(VsTemplate)\IronPython "Default"="Iron Python" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\NewProjectTemplates\TemplateDirs\{39c9c826-8ef8-4079-8c95-428f5b1c323f}\IronPython] @="Iron Python" "NewProjectDialogExOn"=dword:00000001 "SortPriority"=dword:0000012c "TemplatesDir"="D:\\Program Files\\Microsoft Visual Studio 8\\Web\\.\\WebProjects\\IronPython" "DeveloperActivity"="IronPython"

Konstruktory

WebSiteProjectAttribute(String, String)

Vytvoří nový atribut WebSiteProjectAttribute pro registraci jazyka v projektu webu.

Vlastnosti

LanguageID

Získá ID jazyka, na který se odkazuje z vstemplate

LanguageName

Získá název jazyka, který se zobrazí v dialogovém okně přidat nový web v seznamu jazyků.

TypeId

Přepište vlastnost TypeID, aby mohly odvozené třídy RegistrationAttribute pracovat s System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto 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 k kořenovému adresáři registru aplikace) VSPackage.

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

Volá se pro registraci tohoto atributu v daném kontextu. Kontext obsahuje umístění, kam se mají umístit informace o registraci. Obsahuje také další informace, jako je zaregistrovaný typ a informace o cestě.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušení registrace tohoto ID jazyka

Platí pro