Udostępnij przez


ProvideSourceControlProviderAttribute Klasa

Definicja

Rejestruje informacje o dostawcy Scc. Przykład użycia: [ProvideSourceControlProvider(registeredName: "Test Provider", displayNameResourceId: "#100", displayNamePackage: "{92f93057-f1fc-49df-870f-b3474046911a}", registeredProvider: "{92f93057-f1fc-49df-870f-b3474046911b}", sccProviderService: "{92f93057-f1fc-49df-870f-b3474046911c}", IsPublishSupported = true)] Przykładowa rejestracja: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders{92f93057-f1fc-49df-870f-b3474046911b}] @="Dostawca testów" "Service"="{92f93057-f1fc-49df-870f-b3474046911c}" "IsPublishSupported"="=" dword:00000001

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders\{92f93057-f1fc-49df-870f-b3474046911b}\Name]
@="#100"
"Package"="{92f93057-f1fc-49df-870f-b3474046911a}"

UWAGA: Wszystkie identyfikatory GUID używane powyżej są przeznaczone tylko do celów ilustracyjnych. Ponadto zakłada się, że wersja ma być 14.0 powyżej.

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

Konstruktory

ProvideSourceControlProviderAttribute(String, String, String, String, String)

Twórca atrybut rejestracji rejestrujący dostawcę Scc

Właściwości

DisplayNamePackage

Pobiera identyfikator GUID pakietu zawierającego nazwę wyświetlaną dostawcy

DisplayNameResourceId

Pobiera identyfikator zasobu nazwy wyświetlanej dostawcy

IsPublishSupported

Pobiera/ustawia, czy ten dostawca Scc obsługuje publikowanie na hoście zdalnym

RegisteredName

Pobiera przyjazną nazwę dostawcy — ta nazwa jest niezmienna dla ustawień regionalnych

RegisteredProvider

Pobiera identyfikator GUID identyfikujący dostawcę

SccProviderService

Pobiera identyfikator GUID usługi dostawcy

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

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ż informacje o typie, który jest zarejestrowany, oraz informacje o ścieżce.

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestrowywanie tego atrybutu

Dotyczy