IVsSccAddWebProjectFromSourceControl.AddWebProjectFromSourceControl 方法

添加一个指定的基于 web 的项目添加到当前解决方案中,存储在指定的位置。

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

语法

声明
Function AddWebProjectFromSourceControl ( _
    bstrLocalPath As String, _
    bstrDatabasePath As String, _
    bstrAuxiliarPath As String, _
    bstrProviderName As String, _
    bstrDebuggingPath As String _
) As Integer
int AddWebProjectFromSourceControl(
    string bstrLocalPath,
    string bstrDatabasePath,
    string bstrAuxiliarPath,
    string bstrProviderName,
    string bstrDebuggingPath
)

参数

  • bstrLocalPath
    类型:System.String
    [in] 将存储该基于 web 的项目的本地路径。
  • bstrDatabasePath
    类型:System.String
    [in] 项目的位置位于源控件的。
  • bstrAuxiliarPath
    类型:System.String
    [in] 可用于定位该项目的源代码管理的附加路径。
  • bstrProviderName
    类型:System.String
    [in] 标识源代码管理提供程序的字符串。
  • bstrDebuggingPath
    类型:System.String
    [in] 要使用的路径,在项目打开。解决方案,并且,如果该项目打开为 “localhost” Web 项目。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 ivssccaddwebprojectfromsourcecontrol.idl

HRESULT AddWebProjectFromSourceControl(
   [in] BSTR bstrLocalPath,
   [in] BSTR bstrDatabasePath,
   [in] BSTR bstrAuxiliarPath,
   [in] BSTR bstrProviderName,
   [in] BSTR bstrDebuggingPath
);

调用提供大多数此信息。 BrowseForServerLocation 方法。

.NET Framework 安全性

请参见

参考

IVsSccAddWebProjectFromSourceControl 接口

Microsoft.VisualStudio.Shell.Interop 命名空间