IVsSccAddWebProjectFromSourceControl::AddWebProjectFromSourceControl Method (String^, String^, String^, String^, String^)

 

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)

int AddWebProjectFromSourceControl(
	String^ bstrLocalPath,
	String^ bstrDatabasePath,
	String^ bstrAuxiliarPath,
	String^ bstrProviderName,
	String^ bstrDebuggingPath
)

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.

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.

Return to top
Show: