Share via


ModelStateEntry.GetModelStateForProperty(String) Method

Definition

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.

Applies to