共用方式為


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

定義

取得 , IEnumerator<T> 其中包含 ValidationEntry 要驗證之模型物件之每個子專案的 。

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>

適用於