Share via


IVsSccOpenFromSourceControl.AddProjectFromSourceControl(String) Method

Definition

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

public:
 int AddProjectFromSourceControl(System::String ^ pszProjectStoreUrl);
public:
 int AddProjectFromSourceControl(Platform::String ^ pszProjectStoreUrl);
int AddProjectFromSourceControl(std::wstring const & pszProjectStoreUrl);
public int AddProjectFromSourceControl (string pszProjectStoreUrl);
abstract member AddProjectFromSourceControl : string -> int
Public Function AddProjectFromSourceControl (pszProjectStoreUrl As String) As Integer

Parameters

pszProjectStoreUrl
String

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

Returns

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

Remarks

COM Signature

From ivssccopenfromsourcecontrol.idl

HRESULT AddProjectFromSourceControl(  
   [in] LPCOLESTR pszProjectStoreUrl  
);  

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

Applies to