Share via


ProvideSourceControlProviderAttribute Clase

Definición

Registra la información del proveedor de Scc. Ejemplo de uso: [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)] Registro de ejemplo: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders{92f93057-f1fc-49df-870f-b3474046911b}] @="Proveedor de pruebas" "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}"

NOTA: Todos los GUID usados anteriormente son solo con fines ilustrativos. Además, se supone que la versión es 14.0 anterior.

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
Herencia
ProvideSourceControlProviderAttribute
Atributos

Constructores

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

Create un atributo de registro que registra un proveedor de Scc

Propiedades

DisplayNamePackage

Obtiene el guid del paquete que contiene el nombre para mostrar del proveedor.

DisplayNameResourceId

Obtiene el identificador de recurso del nombre para mostrar del proveedor.

IsPublishSupported

Obtiene o establece si este proveedor de Scc admite la publicación en un host remoto.

RegisteredName

Obtiene el nombre descriptivo del proveedor: este nombre es invariable de configuración regional.

RegisteredProvider

Obtiene el guid que identifica el proveedor.

SccProviderService

Obtiene el guid del servicio del proveedor.

TypeId

Invalide la propiedad TypeID para permitir que las clases derivadas RegistrationAttribute funcionen con System.ComponentModel.TypeDescriptor.GetAttributes(...). Un atributo derivado de este tendrá que invalidar esta propiedad solo si necesita un mejor control en las instancias que se pueden aplicar a una clase.

(Heredado de RegistrationAttribute)

Métodos

GetPackageRegKeyPath(Guid)

Obtiene la ruta del Registro (en relación con la raíz del Registro de la aplicación) del Paquete VSPackage.

(Heredado de RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Se usa para registrar este atributo con el contexto determinado. El contexto contiene la ubicación en la que se debe colocar la información de registro. también contiene como el tipo que se está registrando y la información de ruta de acceso.

Unregister(RegistrationAttribute+RegistrationContext)

Anulación del registro de este atributo

Se aplica a