HtmlHelperValueExtensions.Value(IHtmlHelper, String) メソッド

定義

指定した の書式設定された値を返します expression。 具体的には、 で見つかった最初の非null 値を返します。完全な名前の ModelState エントリ、完全な名前を ViewData 持つエントリ、または に expression 対して Model評価された 。 "フル ネーム" の詳細については、「」を参照してください Name(String)

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Value(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ expression);
public static string Value (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string expression);
static member Value : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> string
<Extension()>
Public Function Value (htmlHelper As IHtmlHelper, expression As String) As String

パラメーター

htmlHelper
IHtmlHelper

このメソッドが IHtmlHelper 拡張するインスタンス。

expression
String

現在のモデルを基準とした式名。

戻り値

String書式設定された値を含む 。

注釈

式の結果を 直接 に String 変換します。

適用対象