다음을 통해 공유


IVsRegisterScciProvider.RegisterSourceControlProvider(Guid) Method

Definition

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

public:
 int RegisterSourceControlProvider(Guid guidProviderService);
public int RegisterSourceControlProvider (Guid guidProviderService);
abstract member RegisterSourceControlProvider : Guid -> int
Public Function RegisterSourceControlProvider (guidProviderService As Guid) As Integer

Parameters

guidProviderService
Guid

[in] GUID of the source control provider.

Returns

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).

Applies to