ProvideSourceControlProviderAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers Scc provider information. Example of usage: [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)] Example registration: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders{92f93057-f1fc-49df-870f-b3474046911b}] @="Test Provider" "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}"
NOTE: All Guids used above are for illustration purposes only. Also, the version is assumed to be 14.0 above.
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
- Inheritance
- Attributes
Constructors
ProvideSourceControlProviderAttribute(String, String, String, String, String) |
Create a registration attribute that registers an Scc provider |
Properties
DisplayNamePackage |
Gets the guid of the package containing the display name of the provider |
DisplayNameResourceId |
Gets the resource id of the display name of the provider |
IsPublishSupported |
Gets/Sets whether this Scc provider supports publishing to a remote host |
RegisteredName |
Gets the friendly name of the provider - This name is locale invariant |
RegisteredProvider |
Gets the guid identifying the provider |
SccProviderService |
Gets the guid of the provider's service |
TypeId |
Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class. (Inherited from RegistrationAttribute) |
Methods
GetPackageRegKeyPath(Guid) |
Gets the registry path (relative to the registry root of the application) of the VSPackage. (Inherited from RegistrationAttribute) |
Register(RegistrationAttribute+RegistrationContext) |
Called to register this attribute with the given context. The context contains the location where the registration information should be placed. it also contains such as the type being registered, and path information. |
Unregister(RegistrationAttribute+RegistrationContext) |
Unregister this attribute |