VSWebPackage.OpenWebSite 方法

打开一个网站。

命名空间:  VsWebSite
程序集:  VsWebSite.Interop(在 VsWebSite.Interop.dll 中)

语法

声明
Function OpenWebSite ( _
    bstrUrl As String, _
    options As OpenWebsiteOptions, _
    bAddToSolution As Boolean _
) As Project
Project OpenWebSite(
    string bstrUrl,
    OpenWebsiteOptions options,
    bool bAddToSolution
)
Project^ OpenWebSite(
    [InAttribute] String^ bstrUrl, 
    [InAttribute] OpenWebsiteOptions options, 
    [InAttribute] bool bAddToSolution
)
abstract OpenWebSite : 
        bstrUrl:string * 
        options:OpenWebsiteOptions * 
        bAddToSolution:bool -> Project 
function OpenWebSite(
    bstrUrl : String, 
    options : OpenWebsiteOptions, 
    bAddToSolution : boolean
) : Project

参数

  • bstrUrl
    类型:System.String
    要打开的网站的 URL。它可以是磁盘上某一文件夹的路径、HTTP URL 或 FTP URL。此参数不支持使用 file:// 协议的 URL。
  • bAddToSolution
    类型:System.Boolean
    一个确定网站是否添加到解决方案的布尔值。

返回值

类型:EnvDTE.Project
EnvDTE 对象。

.NET Framework 安全性

请参见

参考

VSWebPackage 接口

VsWebSite 命名空间