IVsSccOpenFromSourceControl.AddProjectFromSourceControl Method
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)
Syntax
'Declaration
Function AddProjectFromSourceControl ( _
pszProjectStoreUrl As String _
) As Integer
int AddProjectFromSourceControl(
string pszProjectStoreUrl
)
int AddProjectFromSourceControl(
[InAttribute] String^ pszProjectStoreUrl
)
abstract AddProjectFromSourceControl :
pszProjectStoreUrl:string -> int
function AddProjectFromSourceControl(
pszProjectStoreUrl : String
) : int
Parameters
pszProjectStoreUrl
Type: 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: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.