다음을 통해 공유


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

‘선언
Function AddWebProjectFromSourceControl ( _
    bstrLocalPath As String, _
    bstrDatabasePath As String, _
    bstrAuxiliarPath As String, _
    bstrProviderName As String, _
    bstrDebuggingPath As String _
) As Integer
‘사용 방법
Dim instance As IVsSccAddWebProjectFromSourceControl
Dim bstrLocalPath As String
Dim bstrDatabasePath As String
Dim bstrAuxiliarPath As String
Dim bstrProviderName As String
Dim bstrDebuggingPath As String
Dim returnValue As Integer

returnValue = instance.AddWebProjectFromSourceControl(bstrLocalPath, _
    bstrDatabasePath, bstrAuxiliarPath, _
    bstrProviderName, bstrDebuggingPath)
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: System.String
    [in] The local path where the Web-based project will be stored.
  • bstrDatabasePath
    Type: System.String
    [in] The location of the project in the source control.
  • bstrAuxiliarPath
    Type: System.String
    [in] An additional path that can be used to locate the project in source control.
  • bstrProviderName
    Type: System.String
    [in] A string identifying the source code control provider.
  • bstrDebuggingPath
    Type: System.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: System.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

IVsSccAddWebProjectFromSourceControl Members

Microsoft.VisualStudio.Shell.Interop Namespace