IUrlResolutionService.ResolveClientUrl(String) 方法

定義

傳回適合用戶端使用的已解析 URL。Returns a resolved URL that is suitable for use by the client.

public:
 System::String ^ ResolveClientUrl(System::String ^ relativeUrl);
public string ResolveClientUrl (string relativeUrl);
abstract member ResolveClientUrl : string -> string
Public Function ResolveClientUrl (relativeUrl As String) As String

參數

relativeUrl
String

相對於目前頁面的 URL。A URL relative to the current page.

傳回

包含已解析 URL 的 StringA String containing the resolved URL.

備註

如果指定的 URL 是絕對的, 則會傳回絕對 URL, 而不會有任何變更。If the specified URL is absolute, the absolute URL is returned without changes. 否則, 會將 URL 轉換成用戶端可以解析的相對 URL。Otherwise, the URL is converted to a relative URL that the client can resolve.

適用於

另請參閱