WebSiteProjectRelatedFilesAttribute クラス

定義

この属性を使用すると、Web サイト プロジェクトは、ソリューション エクスプローラーで別のファイルの種類 (プライマリ) の下に 1 つのファイルの種類 (関連) を入れ子にすることができます

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
継承
WebSiteProjectRelatedFilesAttribute
属性

注釈

例として、次の属性定義 [WebSiteProjectRelatedFiles("aspx","py")]

は、次のレジストリ キーを追加します: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\(*version*)\Projects\ {E24C65DC-7377-472B-9ABA-BC803B73C61A}\RelatedFiles\.aspx\.py "Default"=""

コンストラクター

WebSiteProjectRelatedFilesAttribute(String, String)

Web サイト プロジェクトに言語を登録する新しい WebSiteProjectAttribute 属性を作成します。

プロパティ

PrimaryFileExtension

ファイルを入れ子にするプライマリ ファイル拡張子を取得します

RelatedFileExtension

プライマリ ファイル拡張子の下に入れ子になる関連ファイルの拡張子を取得します

TypeId

RegistrationAttribute 派生クラスが System.ComponentModel.TypeDescriptor.GetAttributes(...) と連携できるように、TypeID プロパティをオーバーライドします。このプロパティから派生した属性は、クラスに適用できるインスタンスをより適切に制御する必要がある場合にのみ、このプロパティをオーバーライドする必要があります。

(継承元 RegistrationAttribute)

メソッド

GetPackageRegKeyPath(Guid)

VSPackage のレジストリ パス (アプリケーションのレジストリ ルートに対する相対パス) を取得します。

(継承元 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

指定されたコンテキストでこの属性を登録します。 コンテキストには、登録情報の配置先の場所が含まれます。 また、登録されている型やパス情報などのその他の情報も含まれます。

Unregister(RegistrationAttribute+RegistrationContext)

この関連ファイル拡張子の登録を解除する

適用対象