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。這個 URL 可以是磁碟上資料夾的路徑、HTTP URL 或 FTP URL。這個參數不支援使用 file:// 通訊協定 (Protocol) 的 URL。
- options
型別:VsWebSite.OpenWebsiteOptions
OpenWebsiteOptions 物件,其中指定開啟網站的方式。
- bAddToSolution
型別:System.Boolean
布林值 (Boolean),判斷網站是否加入至方案。
傳回值
型別:EnvDTE.Project
EnvDTE 物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。