共用方式為


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

'宣告
Function AddProjectFromSourceControl ( _
    pszProjectStoreUrl As String _
) As Integer
'用途
Dim instance As IVsSccOpenFromSourceControl
Dim pszProjectStoreUrl As String
Dim returnValue As Integer

returnValue = instance.AddProjectFromSourceControl(pszProjectStoreUrl)
int AddProjectFromSourceControl(
    string pszProjectStoreUrl
)
int AddProjectFromSourceControl(
    [InAttribute] String^ pszProjectStoreUrl
)
abstract AddProjectFromSourceControl : 
        pszProjectStoreUrl:string -> int 
function AddProjectFromSourceControl(
    pszProjectStoreUrl : String
) : int

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.

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

See Also

Reference

IVsSccOpenFromSourceControl Interface

IVsSccOpenFromSourceControl Members

Microsoft.VisualStudio.Shell.Interop Namespace