Share via


WebSiteProjectRelatedFilesAttribute Class

Definition

This attribute allows the Web Site Project to nest one file type (related) under another file type (primary) in the solution explorer

public ref class WebSiteProjectRelatedFilesAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class WebSiteProjectRelatedFilesAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class WebSiteProjectRelatedFilesAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type WebSiteProjectRelatedFilesAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class WebSiteProjectRelatedFilesAttribute
Inherits RegistrationAttribute
Inheritance
WebSiteProjectRelatedFilesAttribute
Attributes

Remarks

As an example the following Attribute definition [WebSiteProjectRelatedFiles("aspx","py")]

would add the following registry key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\(*version*)\Projects\ {E24C65DC-7377-472B-9ABA-BC803B73C61A}\RelatedFiles\.aspx\.py "Default"=""

Constructors

WebSiteProjectRelatedFilesAttribute(String, String)

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

Properties

PrimaryFileExtension

Gets the primary file extension which will nest files

RelatedFileExtension

Gets the related file extion which willl nest under the primary file extension

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 related file extension

Applies to