ProvideSourceControlProviderAttribute 类

定义

注册 Scc 提供程序信息。 用法示例: [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) ] 示例注册: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0_Config\SourceControlProviders{ 92f93057-f1fc-49df-870f-b3474046911b}] @ = "测试提供程序" "服务" = "{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" "包" = "{92f93057-f1fc-49df-870f-b3474046911a}" 注意:上述所有 Guid 仅用于说明目的。 此外,此版本假设在上面是14.0。

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
继承
ProvideSourceControlProviderAttribute
属性

构造函数

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

创建注册 Scc 提供程序的注册属性

属性

DisplayNamePackage

获取包含提供程序的显示名称的包的 guid

DisplayNameResourceId

获取提供程序的显示名称的资源 id

IsPublishSupported

获取/设置此 Scc 提供程序是否支持向远程主机发布

RegisteredName

获取提供程序的友好名称-此名称是区域设置固定的

RegisteredProvider

获取标识提供程序的 guid

SccProviderService

获取提供程序的服务的 guid

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文注册此属性。 上下文包含应放置注册信息的位置。 它还包含要注册的类型,以及路径信息。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此属性

适用于