次の方法で共有


IVsSccAddWebProjectFromSourceControl.AddWebProjectFromSourceControl Method

Definition

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

public:
 int AddWebProjectFromSourceControl(System::String ^ bstrLocalPath, System::String ^ bstrDatabasePath, System::String ^ bstrAuxiliarPath, System::String ^ bstrProviderName, System::String ^ bstrDebuggingPath);
public:
 int AddWebProjectFromSourceControl(Platform::String ^ bstrLocalPath, Platform::String ^ bstrDatabasePath, Platform::String ^ bstrAuxiliarPath, Platform::String ^ bstrProviderName, Platform::String ^ bstrDebuggingPath);
int AddWebProjectFromSourceControl(std::wstring const & bstrLocalPath, std::wstring const & bstrDatabasePath, std::wstring const & bstrAuxiliarPath, std::wstring const & bstrProviderName, std::wstring const & bstrDebuggingPath);
public int AddWebProjectFromSourceControl (string bstrLocalPath, string bstrDatabasePath, string bstrAuxiliarPath, string bstrProviderName, string bstrDebuggingPath);
abstract member AddWebProjectFromSourceControl : string * string * string * string * string -> int
Public Function AddWebProjectFromSourceControl (bstrLocalPath As String, bstrDatabasePath As String, bstrAuxiliarPath As String, bstrProviderName As String, bstrDebuggingPath As String) As Integer

Parameters

bstrLocalPath
String

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

bstrDatabasePath
String

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

bstrAuxiliarPath
String

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

bstrProviderName
String

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

bstrDebuggingPath
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.

Returns

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.

Applies to