Freigeben über


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

'Declaration
Function RegisterSourceControlProvider ( _
    guidProviderService As Guid _
) As Integer
int RegisterSourceControlProvider(
    Guid guidProviderService
)
int RegisterSourceControlProvider(
    [InAttribute] Guid guidProviderService
)
abstract RegisterSourceControlProvider : 
        guidProviderService:Guid -> int
function RegisterSourceControlProvider(
    guidProviderService : Guid
) : int

Parameters

  • guidProviderService
    Type: Guid

    [in] GUID of the source control provider.

Return Value

Type: 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 method (if the package implements the IVsPackage interface directly).

.NET Framework Security

See Also

Reference

IVsRegisterScciProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace