Share via


WebSiteProjectAttribute Class

Definition

This attribute adds a ProjectSubType to the exisiting list defined of ProjectSubTypes for the Web Site Project

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
Inheritance
WebSiteProjectAttribute
Attributes

Remarks

For example: [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" "NewProjectDialogExOnly"=dword:00000001 "SortPriority"=dword:0000012c "TemplatesDir"="D:\\Program Files\\Microsoft Visual Studio 8\\Web\\.\\WebProjects\\IronPython" "DeveloperActivity"="IronPython"

Constructors

WebSiteProjectAttribute(String, String)

Creates a new WebSiteProjectAttribute attribute to register a language with the web site project

Properties

LanguageID

Gets the Language ID which is being referenced from the vstemplate

LanguageName

Gets the Language Name which shows up in the add new Web Site dialog under the list of languages

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. It also contains other information such as the type being registered and path information.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this languageID

Applies to