WebSiteProjectRelatedFilesAttribute Sınıf

Tanım

Web sitesi projesinin, Çözüm Gezgini 'nde başka bir dosya türü (birincil) altına bir dosya türünü (ilişkili) iç içe almasına izin verir.

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
Devralma
WebSiteProjectRelatedFilesAttribute
Öznitelikler

Açıklamalar

Örnek olarak, aşağıdaki öznitelik tanımına [WebSiteProjectRelatedFiles ("aspx", "Kopyala")] Şu kayıt defteri anahtarını ekler: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\( *Sürüm*) \Projects\ {E24C65DC-7377-472B-9ABA-BC803B73C61A} \RelatedFiles \. aspx \. "varsayılan" = ""

Oluşturucular

WebSiteProjectRelatedFilesAttribute(String, String)

WebSiteProjectRelatedFilesAttribute sınıfının yeni bir örneğini başlatır.

Özellikler

PrimaryFileExtension

Dosyaları gösteren birincil dosya uzantısını alır.

RelatedFileExtension

Birincil dosya uzantısı altında with 'nin bulunduğu ilgili dosya uzantısını alır.

TypeId

Bu özniteliğin geçerli örneğini alır.

(Devralındığı yer: RegistrationAttribute)

Yöntemler

GetPackageRegKeyPath(Guid)

VSPackage 'ın (uygulamanın kayıt defteri köküne göre) kayıt defteri yolunu alır.

(Devralındığı yer: RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Bu özniteliği verilen bağlamla kaydeder.

Unregister(RegistrationAttribute+RegistrationContext)

Bu özniteliğin kaydını siler.

Şunlara uygulanır