WebSiteProjectRelatedFilesAttribute WebSiteProjectRelatedFilesAttribute WebSiteProjectRelatedFilesAttribute WebSiteProjectRelatedFilesAttribute WebSiteProjectRelatedFilesAttribute Class

Definition

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
type WebSiteProjectRelatedFilesAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class WebSiteProjectRelatedFilesAttribute
Inherits RegistrationAttribute
Inheritance
WebSiteProjectRelatedFilesAttributeWebSiteProjectRelatedFilesAttributeWebSiteProjectRelatedFilesAttributeWebSiteProjectRelatedFilesAttributeWebSiteProjectRelatedFilesAttribute
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) WebSiteProjectRelatedFilesAttribute(String, String) WebSiteProjectRelatedFilesAttribute(String, String) WebSiteProjectRelatedFilesAttribute(String, String) WebSiteProjectRelatedFilesAttribute(String, String)

Initializes a new instance of the WebSiteProjectRelatedFilesAttribute class.

Properties

PrimaryFileExtension PrimaryFileExtension PrimaryFileExtension PrimaryFileExtension PrimaryFileExtension

Gets the primary file extension that nests files.

RelatedFileExtension RelatedFileExtension RelatedFileExtension RelatedFileExtension RelatedFileExtension

Gets the related file extension that nests under the primary file extension.

TypeId TypeId TypeId TypeId TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid)

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

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to