FormContext.RenderedField Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| RenderedField(String) | Returns an indication based on Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields that the given  | 
| RenderedField(String, Boolean) | Updates Microsoft.AspNetCore.Mvc.ViewFeatures.FormContext.RenderedFields to indicate  | 
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 -> boolPublic Function RenderedField (fieldName As String) As BooleanParameters
- 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 -> unitPublic 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.