IVsSccProjectProviderBinding.GetProviderService Method

This method retrieves the service ID (SID) of a service object that will be used to instantiate a source control package.

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

Syntax

'Declaration
Function GetProviderService ( _
    <OutAttribute> ByRef pguidService As Guid _
) As Integer
int GetProviderService(
    out Guid pguidService
)
int GetProviderService(
    [OutAttribute] Guid% pguidService
)
abstract GetProviderService : 
        pguidService:Guid byref -> int
function GetProviderService(
    pguidService : Guid
) : int

Parameters

  • pguidService
    Type: Guid%

    [out] Returns the service GUID (SID) of a service object that will be used to instantiate a source control package.

Return Value

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

Remarks

COM Signature

From ivssccprojectproviderbinding.idl

HRESULT GetProviderService(
   [out, retval] GUID* pguidService
);

This method is called by Visual Studio when the project is first being added to source control. Later, the service object, obtained with the SID saved from this method, is used to instantiate a source control package during the enlistment process when the project is being retrieved from source control.

.NET Framework Security

See Also

Reference

IVsSccProjectProviderBinding Interface

Microsoft.VisualStudio.Shell.Interop Namespace