This topic has not yet been rated - Rate this topic

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)

int GetProviderService (
	out Guid pguidService
)
int GetProviderService (
	/** @attribute OutAttribute() */ /** @ref */ Guid pguidService
)
JScript does not support passing value-type arguments by reference.

Parameters

pguidService

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

Return Value

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

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.