共用方式為


WebUIView.BuildLocalStreamUri(String, String) 方法

定義

建立您可以傳遞至NavigateToLocalStreamUri 的URI

public:
 virtual Uri ^ BuildLocalStreamUri(Platform::String ^ contentIdentifier, Platform::String ^ relativePath) = BuildLocalStreamUri;
Uri BuildLocalStreamUri(winrt::hstring const& contentIdentifier, winrt::hstring const& relativePath);
public System.Uri BuildLocalStreamUri(string contentIdentifier, string relativePath);
function buildLocalStreamUri(contentIdentifier, relativePath)
Public Function BuildLocalStreamUri (contentIdentifier As String, relativePath As String) As Uri

參數

contentIdentifier
String

Platform::String

winrt::hstring

URI 所參考之內容的唯一識別碼。 這會定義 URI 的根目錄。

relativePath
String

Platform::String

winrt::hstring

相對於根目錄的資源路徑。

傳回

實作

M:Windows.Web.UI.IWebViewControl.BuildLocalStreamUri(System.String,System.String) M:Windows.Web.UI.IWebViewControl.BuildLocalStreamUri(Platform::String,Platform::String) M:Windows.Web.UI.IWebViewControl.BuildLocalStreamUri(winrt::hstring,winrt::hstring)

適用於