IUrlHelper.Content(String) メソッド

定義

仮想パス (~/で始まる相対パス) をアプリケーションの絶対パスに変換します。

public:
 System::String ^ Content(System::String ^ contentPath);
public string Content (string contentPath);
public string? Content (string? contentPath);
abstract member Content : string -> string
Public Function Content (contentPath As String) As String

パラメーター

contentPath
String

コンテンツの仮想パス。

戻り値

アプリケーション絶対パス。

注釈

指定したコンテンツ パスがチルダ (~) 文字で始まらない場合、このメソッドは変更されずにを返します contentPath

適用対象