Dela via


FormContext.RenderedField Method

Definition

Overloads

RenderedField(String)

Returns an indication based on Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields that the given fieldName has been rendered in this <form>.

RenderedField(String, Boolean)

Updates Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields to indicate fieldName has been rendered in this <form>.

RenderedField(String)

Source:
FormContext.cs
Source:
FormContext.cs
Source:
FormContext.cs

Returns an indication based on Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields that the given fieldName has been rendered in this <form>.

public:
 bool RenderedField(System::String ^ fieldName);
public bool RenderedField (string fieldName);
member this.RenderedField : string -> bool
Public Function RenderedField (fieldName As String) As Boolean

Parameters

fieldName
String

The full HTML name of a field that may have been rendered.

Returns

true if the given fieldName has been rendered; false otherwise.

Applies to

RenderedField(String, Boolean)

Source:
FormContext.cs
Source:
FormContext.cs
Source:
FormContext.cs

Updates Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields to indicate fieldName has been rendered in this <form>.

public:
 void RenderedField(System::String ^ fieldName, bool value);
public void RenderedField (string fieldName, bool value);
member this.RenderedField : string * bool -> unit
Public Sub RenderedField (fieldName As String, value As Boolean)

Parameters

fieldName
String

The full HTML name of a field that may have been rendered.

value
Boolean

If true, the given fieldName has been rendered.

Applies to