显示一个对话框向用户提供源代码管理服务器位置浏览。
命名空间: 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] 返回要存储该项的一个建议的本地路径。用户可以重写此字符串。
- pbstrDatabasePath
类型:System.String%
[out] 返回该数据库的位置 (这不会向用户显示)。此值直接传递到 AddWebProjectFromSourceControl 方法。
- pbstrAuxiliarPath
类型:System.String%
[out] ,如果源控件包需要,返回一个附加路径。这是通过直接对 AddWebProjectFromSourceControl 方法。
- pbstrProviderName
类型:System.String%
[out] 返回标识源控件包的字符串使用。此字符串直接传递到 AddWebProjectFromSourceControl 方法。
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。