IVsSccAddWebProjectFromSourceControl.BrowseForServerLocation 方法

显示一个对话框向用户提供源代码管理服务器位置浏览。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function BrowseForServerLocation ( _
    <OutAttribute> ByRef pbstrLocationDescription As String, _
    <OutAttribute> ByRef pbstrLocalPath As String, _
    <OutAttribute> ByRef pbstrDatabasePath As String, _
    <OutAttribute> ByRef pbstrAuxiliarPath As String, _
    <OutAttribute> ByRef pbstrProviderName As String _
) As Integer
int BrowseForServerLocation(
    out string pbstrLocationDescription,
    out string pbstrLocalPath,
    out string pbstrDatabasePath,
    out string pbstrAuxiliarPath,
    out string pbstrProviderName
)

参数

  • pbstrLocationDescription
    类型:System.String%
    [out] 返回的路径的用户友好说明 (例如, “从数据库 GemSS项目 MyProject ")。
  • pbstrLocalPath
    类型:System.String%
    [out] 返回要存储该项的一个建议的本地路径。用户可以重写此字符串。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。,如果用户取消该对话框,方法返回 E_FAIL 。否则,此方法返回错误代码。

备注

COM 签名

从 ivssccaddwebprojectfromsourcecontrol.idl

HRESULT BrowseForServerLocation(
   [out] BSTR * pbstrLocationDescription,
   [out] BSTR * pbstrLocalPath,
   [out] BSTR * pbstrDatabasePath,
   [out] BSTR * pbstrAuxiliarPath,
   [out] BSTR * pbstrProviderName
);

返回的信息用于其他的浏览对话框 (提供 Visual Studio) 用户选择基于 web 的项目添加和位置存储它。所有这些信息传递到 AddWebProjectFromSourceControl 方法。

.NET Framework 安全性

请参见

参考

IVsSccAddWebProjectFromSourceControl 接口

Microsoft.VisualStudio.Shell.Interop 命名空间