Compartir a través de


IVsSccAddWebProjectFromSourceControl.AddWebProjectFromSourceControl Method

Adds the specified Web-based project to the current solution, storing it at the specified location.

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

Syntax

'Declaration
Function AddWebProjectFromSourceControl ( _
    bstrLocalPath As String, _
    bstrDatabasePath As String, _
    bstrAuxiliarPath As String, _
    bstrProviderName As String, _
    bstrDebuggingPath As String _
) As Integer
int AddWebProjectFromSourceControl(
    string bstrLocalPath,
    string bstrDatabasePath,
    string bstrAuxiliarPath,
    string bstrProviderName,
    string bstrDebuggingPath
)
int AddWebProjectFromSourceControl(
    [InAttribute] String^ bstrLocalPath, 
    [InAttribute] String^ bstrDatabasePath, 
    [InAttribute] String^ bstrAuxiliarPath, 
    [InAttribute] String^ bstrProviderName, 
    [InAttribute] String^ bstrDebuggingPath
)
abstract AddWebProjectFromSourceControl : 
        bstrLocalPath:string * 
        bstrDatabasePath:string * 
        bstrAuxiliarPath:string * 
        bstrProviderName:string * 
        bstrDebuggingPath:string -> int
function AddWebProjectFromSourceControl(
    bstrLocalPath : String, 
    bstrDatabasePath : String, 
    bstrAuxiliarPath : String, 
    bstrProviderName : String, 
    bstrDebuggingPath : String
) : int

Parameters

  • bstrLocalPath
    Type: String

    [in] The local path where the Web-based project will be stored.

  • bstrDatabasePath
    Type: String

    [in] The location of the project in the source control.

  • bstrAuxiliarPath
    Type: String

    [in] An additional path that can be used to locate the project in source control.

  • bstrProviderName
    Type: String

    [in] A string identifying the source code control provider.

  • bstrDebuggingPath
    Type: String

    [in] A path to be used when the project is opened with the solution and if the project will be opened as a "localhost" Web project.

Return Value

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

Remarks

COM Signature

From ivssccaddwebprojectfromsourcecontrol.idl

HRESULT AddWebProjectFromSourceControl(
   [in] BSTR bstrLocalPath,
   [in] BSTR bstrDatabasePath,
   [in] BSTR bstrAuxiliarPath,
   [in] BSTR bstrProviderName,
   [in] BSTR bstrDebuggingPath
);

Most of this information is supplied by a call to the BrowseForServerLocation method.

.NET Framework Security

See Also

Reference

IVsSccAddWebProjectFromSourceControl Interface

Microsoft.VisualStudio.Shell.Interop Namespace