ModelStateEntry.GetModelStateForProperty(String) 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.
Gets the ModelStateEntry for a sub-property with the specified
propertyName
.
public:
abstract Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateEntry ^ GetModelStateForProperty(System::String ^ propertyName);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry GetModelStateForProperty (string propertyName);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry? GetModelStateForProperty (string propertyName);
abstract member GetModelStateForProperty : string -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry
Public MustOverride Function GetModelStateForProperty (propertyName As String) As ModelStateEntry
Parameters
- propertyName
- String
The property name to lookup.
Returns
The ModelStateEntry if a sub-property was found; otherwise null
.
Remarks
This method returns any existing entry, even those with IsContainerNode with value true
.