WebSiteProjectRelatedFilesAttribute Class

 

Allows the Web Site Project to nest one file type (related) under another file type (primary) in the solution explorer.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.WebSiteProjectRelatedFilesAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, 
	Inherited = true)]
[ComVisibleAttribute(false)]
public sealed class WebSiteProjectRelatedFilesAttribute : RegistrationAttribute

NameDescription
System_CAPS_pubmethodWebSiteProjectRelatedFilesAttribute(String, String)

Initializes a new instance of the WebSiteProjectRelatedFilesAttribute class.

NameDescription
System_CAPS_pubpropertyPrimaryFileExtension

Gets the primary file extension that nests files.

System_CAPS_pubpropertyRelatedFileExtension

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

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

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"=""

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: