ModelStateEntry.GetModelStateForProperty(String) 方法

定義

ModelStateEntry取得具有指定 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

參數

propertyName
String

要查閱的屬性名稱。

傳回

ModelStateEntry如果找到子屬性,則為 ,否則 null 為 。

備註

這個方法會傳回任何現有的專案,即使具有 IsContainerNodetrue 的專案也一樣。

適用於