BindingMetadata Class¶
Properties¶
-
BinderModelName
()¶ Gets or sets the binder model name. If <c>null</c> the property or parameter name will be used. See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.BinderModelName]().
Return type: System.String public string BinderModelName { get; set; }
-
BinderType
()¶ Gets or sets the [System.Type]() of the model binder used to bind the model. See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.BinderType]().
Return type: System.Type public Type BinderType { get; set; }
-
BindingSource
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ModelBinding.BindingSource](). See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.BindingSource]().
Return type: Microsoft.AspNet.Mvc.ModelBinding.BindingSource public BindingSource BindingSource { get; set; }
-
IsBindingAllowed
()¶ Gets or sets a value indicating whether or not the property can be model bound. Will be ignored if the model metadata being created does not represent a property. See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsBindingAllowed]().
Return type: System.Boolean public bool IsBindingAllowed { get; set; }
-
IsBindingRequired
()¶ Gets or sets a value indicating whether or not the request must contain a value for the model. Will be ignored if the model metadata being created does not represent a property. See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsBindingRequired]().
Return type: System.Boolean public bool IsBindingRequired { get; set; }
-
IsReadOnly
()¶ Gets or sets a value indicating whether or not the model is read-only. Will be ignored if the model metadata being created is not a property. If <c>null</c> then [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsReadOnly]() will be computed based on the accessibility of the property accessor and model [System.Type](). See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.IsReadOnly]().
Return type: System.Nullable{System.Boolean} public bool ? IsReadOnly { get; set; }
-
PropertyBindingPredicateProvider
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ModelBinding.IPropertyBindingPredicateProvider](). See [Microsoft.AspNet.Mvc.ModelBinding.ModelMetadata.PropertyBindingPredicateProvider]().
Return type: Microsoft.AspNet.Mvc.ModelBinding.IPropertyBindingPredicateProvider public IPropertyBindingPredicateProvider PropertyBindingPredicateProvider { get; set; }
-