IVsSccOpenFromSourceControl.AddProjectFromSourceControl Method (String)

 

Adds the specified project to the current solution directly from source control.

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

int AddProjectFromSourceControl(
	string pszProjectStoreUrl
)

Parameters

pszProjectStoreUrl
Type: System.String

[in] The URL of the project in the source control to be added to the current solution (for example, msss://server/…/MyProject.proj).

Return Value

Type: System.Int32

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

From ivssccopenfromsourcecontrol.idl

HRESULT AddProjectFromSourceControl(
   [in] LPCOLESTR pszProjectStoreUrl
);

The URL specified in pszProjectStoreUrl is specific to the source control package implementing this method.

Return to top
Show: