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
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)

Initializes a new instance of the WebSiteProjectRelatedFilesAttribute class.

Properties

PrimaryFileExtension

Gets the primary file extension that nests files.

RelatedFileExtension

Gets the related file extension that nests 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)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to