Udostępnij przez


ProvideRelatedFileAttribute Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Klasa atrybutu w celu udostępnienia wpisów rejestru z prośbą o zarządzanie relacją między zagnieżdżonym plikiem a jego elementem nadrzędnym w Eksploratorze rozwiązań

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
Dziedziczenie
ProvideRelatedFileAttribute
Atrybuty

Konstruktory

ProvideRelatedFileAttribute(String, String)

Twórca nowy atrybut ProvideRelatedFile

Pola

CSharpProjectGuid

Identyfikator GUID systemu projektu C#

VisualBasicProjectGuid

Identyfikator GUID systemu projektu Visual Basic

Właściwości

ChildExtension

Rozszerzenie pliku podrzędnego

FileOptions

Opcje zarządzania powiązanym plikiem

ParentExtension

Rozszerzenie pliku nadrzędnego

ProjectSystem

System projektu zarejestrowany w tym generatorze kodu

TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z atrybutem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tego atrybutu będzie musiał zastąpić tę właściwość tylko wtedy, gdy potrzebuje lepszej kontroli nad wystąpieniami, które można zastosować do klasy.

(Odziedziczone po RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Pobiera ścieżkę rejestru (względem katalogu głównego rejestru aplikacji) pakietu VSPackage.

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Rejestrowanie nowego przełącznika wiersza polecenia

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestrowywanie przełącznika wiersza polecenia

Dotyczy