Język

ProvideMSBuildTargetsAttribute Klasa

Definicja

Ten atrybut rejestruje niestandardowe pliki obiektów docelowych na liście obiektów docelowych znanych i zaufanych przez program MSBuild.

Utworzone wpisy rejestru to: [%RegistryRoot%\MSBuild\SafeImports] "TargetsLabel"="PathToTheTargetsFile"

public ref class ProvideMSBuildTargetsAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideMSBuildTargetsAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideMSBuildTargetsAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideMSBuildTargetsAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideMSBuildTargetsAttribute
Inherits RegistrationAttribute
Dziedziczenie
ProvideMSBuildTargetsAttribute
Atrybuty

Konstruktory

Nazwisko Opis
ProvideMSBuildTargetsAttribute(String, String)

Tworzy nowy atrybut ProvideMSBuildTargets, aby zarejestrować plik docelowy na liście bezpiecznych importów programu MSBuild.

Właściwości

Nazwisko Opis
TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z elementem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tej właściwości 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

Nazwisko Opis
GetPackageRegKeyPath(Guid)

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

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Wywoływana w celu zarejestrowania tego atrybutu w danym kontekście. Kontekst zawiera lokalizację, w której należy umieścić informacje o rejestracji. Zawiera również inne informacje, takie jak typ zarejestrowany i informacje o ścieżce.

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestruj to rozszerzenie pliku.

Dotyczy