IHtmlHelper.Html5DateRenderingMode 属性

定义

将此属性设置为 , CurrentCulture 使模板化帮助程序(例如 Editor(String, String, String, Object) )使用 EditorFor<TResult>(Expression<Func<TModel,TResult>>, String, String, Object) 当前区域性呈现日期和时间值。 默认情况下,这些帮助程序将日期和时间呈现为符合 RFC 3339 的字符串。

public:
 property Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode Html5DateRenderingMode { Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode get(); void set(Microsoft::AspNetCore::Mvc::Rendering::Html5DateRenderingMode value); };
public Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode Html5DateRenderingMode { get; set; }
member this.Html5DateRenderingMode : Microsoft.AspNetCore.Mvc.Rendering.Html5DateRenderingMode with get, set
Public Property Html5DateRenderingMode As Html5DateRenderingMode

属性值

适用于