Condividi tramite


ProvideRelatedFileAttribute Classe

Definizione

Importante

Questa API non è conforme a CLS.

Classe Attribute per fornire le voci di registro per chiedere alla shell di gestire la relazione tra un file annidato e relativo padre in Esplora soluzioni

public ref class ProvideRelatedFileAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideRelatedFileAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideRelatedFileAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideRelatedFileAttribute
Inherits RegistrationAttribute
Ereditarietà
ProvideRelatedFileAttribute
Attributi

Costruttori

ProvideRelatedFileAttribute(String, String)

Creare un nuovo attributo ProvideRelatedFile

Campi

CSharpProjectGuid

GUID del sistema del progetto C#

VisualBasicProjectGuid

GUID del sistema del progetto Visual Basic.

Proprietà

ChildExtension

Estensione del file figlio

FileOptions

Opzioni relative alla gestione del file correlato

ParentExtension

Estensione del file padre

ProjectSystem

Sistema del progetto con cui è registrato il generatore di codice

TypeId

Eseguire l'override della proprietà TypeID per consentire alle classi derivate RegistrationAttribute di usare System.ComponentModel.TypeDescriptor.GetAttributes(...). Un attributo derivato da questo deve eseguire l'override di questa proprietà solo se necessita di un controllo migliore sulle istanze che possono essere applicate a una classe.

(Ereditato da RegistrationAttribute)

Metodi

GetPackageRegKeyPath(Guid)

Ottiene il percorso del Registro di sistema (relativo alla radice del Registro di sistema dell'applicazione) del pacchetto VS.

(Ereditato da RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registrare una nuova opzione della riga di comando

Unregister(RegistrationAttribute+RegistrationContext)

Annulla la registrazione di un'opzione della riga di comando

Si applica a