ModelStateEntry.GetModelStateForProperty(String) Method
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);
C#
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateEntry GetModelStateForProperty (string propertyName);
C#
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
- propertyName
- String
The property name to lookup.
The ModelStateEntry if a sub-property was found; otherwise null
.
This method returns any existing entry, even those with IsContainerNode with value true
.
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |