ComplexModel.Results 属性

定义

获取包含项的集合,这些项对应的每个属性都是绑定尝试的。Gets a collection that contains entries that correspond to each property for which binding was attempted.

public:
 property System::Collections::Generic::IDictionary<System::Web::ModelBinding::ModelMetadata ^, System::Web::ModelBinding::ComplexModelResult ^> ^ Results { System::Collections::Generic::IDictionary<System::Web::ModelBinding::ModelMetadata ^, System::Web::ModelBinding::ComplexModelResult ^> ^ get(); };
public System.Collections.Generic.IDictionary<System.Web.ModelBinding.ModelMetadata,System.Web.ModelBinding.ComplexModelResult> Results { get; }
member this.Results : System.Collections.Generic.IDictionary<System.Web.ModelBinding.ModelMetadata, System.Web.ModelBinding.ComplexModelResult>
Public ReadOnly Property Results As IDictionary(Of ModelMetadata, ComplexModelResult)

属性值

IDictionary<ModelMetadata,ComplexModelResult>

模型属性已尝试模型绑定的元数据。Metadata for model properties for which model binding was attempted.

注解

如果某个属性的绑定失败,则该项的值将为 nullIf binding fails for a property, the entry's value will be null. 如果没有为属性尝试绑定,则字典将不包含该属性的项。If binding is not attempted for a property, the dictionary will not contain an entry for that property.

适用于