IVsRegisterScciProvider.RegisterSourceControlProvider Method

This method is called by the source control package when the package is loaded.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function RegisterSourceControlProvider ( _
    guidProviderService As Guid _
) As Integer
‘사용 방법
Dim instance As IVsRegisterScciProvider
Dim guidProviderService As Guid
Dim returnValue As Integer

returnValue = instance.RegisterSourceControlProvider(guidProviderService)
int RegisterSourceControlProvider(
    Guid guidProviderService
)
int RegisterSourceControlProvider(
    [InAttribute] Guid guidProviderService
)
abstract RegisterSourceControlProvider : 
        guidProviderService:Guid -> int 
function RegisterSourceControlProvider(
    guidProviderService : Guid
) : int

Parameters

  • guidProviderService
    Type: System.Guid
    [in] GUID of the source control provider.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From ivsregisterscciprovider.idl

HRESULT RegisterSourceControlProvider([in] GUID guidProviderService);

When the source control package is first initialized, it calls this method so Visual Studio knows the package is ready. The source control package makes this call either in its override of Initialize (if the source control package is derived from the Package class) or of the SetSite(IServiceProvider) method (if the package implements the IVsPackage interface directly).

.NET Framework Security

See Also

Reference

IVsRegisterScciProvider Interface

IVsRegisterScciProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace