IVsSccAddWebProjectFromSourceControl::BrowseForServerLocation Method (String^, String^, String^, String^, String^)
Presents a dialog box to the user to browse for a source control server location.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int BrowseForServerLocation(
[OutAttribute] String^% pbstrLocationDescription,
[OutAttribute] String^% pbstrLocalPath,
[OutAttribute] String^% pbstrDatabasePath,
[OutAttribute] String^% pbstrAuxiliarPath,
[OutAttribute] String^% pbstrProviderName
)
Parameters
- pbstrLocationDescription
-
Type:
System::String^
[out] Returns a user-friendly description of the returned path (for example, "Project <MyProject> from database <GemSS>").
- pbstrLocalPath
-
Type:
System::String^
[out] Returns a suggested local path where the project will be stored. The user can override this string.
- pbstrDatabasePath
-
Type:
System::String^
[out] Returns the location of the database (this will not be shown to the user). This value is passed directly to the AddWebProjectFromSourceControl method.
- pbstrAuxiliarPath
-
Type:
System::String^
[out] Returns an additional path if the source control package requires it. This is passed directly to the AddWebProjectFromSourceControl method.
- pbstrProviderName
-
Type:
System::String^
[out] Returns a string identifying the source control package being used. This string is passed directly to the AddWebProjectFromSourceControl method.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. The method returns E_FAIL if the user cancels the dialog box. Otherwise, the method returns an error code.
From ivssccaddwebprojectfromsourcecontrol.idl
HRESULT BrowseForServerLocation( [out] BSTR * pbstrLocationDescription, [out] BSTR * pbstrLocalPath, [out] BSTR * pbstrDatabasePath, [out] BSTR * pbstrAuxiliarPath, [out] BSTR * pbstrProviderName );
The returned information is used in another browse dialog box (supplied by Visual Studio) in which the user selects a Web-based project to add and the location to store it in. All of this information is passed on to the AddWebProjectFromSourceControl method.