打开一个网站。
命名空间:  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。
- options
 类型:VsWebSite.OpenWebsiteOptions
 一个指定网站打开方式的 OpenWebsiteOptions 对象。
- bAddToSolution
 类型:System.Boolean
 一个确定网站是否添加到解决方案的布尔值。
返回值
类型:EnvDTE.Project
EnvDTE 对象。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。