HtmlHelperValueExtensions.Value(IHtmlHelper, String) 메서드

정의

지정된 의 서식이 지정된 expression값을 반환합니다. 특히 에서 찾 ModelState 은 첫 번째 비값인null 전체 이름을 가진 항목, 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 확장되는 instance.

expression
String

현재 모델을 기준으로 하는 식 이름입니다.

반환

String 서식이 지정된 값을 포함하는 입니다.

설명

식 결과를 직접 로 String 변환합니다.

적용 대상