IValidationStrategy.GetChildren(ModelMetadata, String, Object) 方法

定义

获取一个 ValidationEntryIEnumerator<T>其中包含要验证的模型对象的每个子项的 。

public:
 System::Collections::Generic::IEnumerator<Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationEntry> ^ GetChildren(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::String ^ key, System::Object ^ model);
public System.Collections.Generic.IEnumerator<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry> GetChildren (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model);
abstract member GetChildren : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * obj -> System.Collections.Generic.IEnumerator<Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationEntry>
Public Function GetChildren (metadata As ModelMetadata, key As String, model As Object) As IEnumerator(Of ValidationEntry)

参数

metadata
ModelMetadata

ModelMetadata 关联的 model

key
String

与 关联的 model模型前缀。

model
Object

对象模型。

返回

IEnumerator<T>

适用于