PropertyModel Class¶
Summary¶
A type which is used to represent a property in a [Microsoft.AspNet.Mvc.ApplicationModels.ControllerModel](Microsoft.AspNet.Mvc.ApplicationModels.ControllerModel.yml).
Constructors¶
-
PropertyModel
(Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel)¶ Creats a new instance of [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml) from a given [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml).
Arguments: - other (Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel) – The [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml) which needs to be copied.
public PropertyModel(PropertyModel other)
-
PropertyModel
(System.Reflection.PropertyInfo, System.Collections.Generic.IReadOnlyList<System.Object>) Creates a new instance of [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml).
Arguments: - propertyInfo (System.Reflection.PropertyInfo) – The [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.PropertyInfo](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml) for the underlying property.
- attributes (System.Collections.Generic.IReadOnlyList{System.Object}) – Any attributes which are annotated on the property.
public PropertyModel(PropertyInfo propertyInfo, IReadOnlyList<object> attributes)
-
Properties¶
-
Attributes
()¶ Gets any attributes which are annotated on the property.
Return type: System.Collections.Generic.IReadOnlyList{System.Object} public IReadOnlyList<object> Attributes { get; }
-
BindingInfo
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.BindingInfo](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml) associated with this model.
Return type: Microsoft.AspNet.Mvc.ModelBinding.BindingInfo public BindingInfo BindingInfo { get; set; }
-
Controller
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ApplicationModels.ControllerModel](Microsoft.AspNet.Mvc.ApplicationModels.ControllerModel.yml) this [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml) is associated with.
Return type: Microsoft.AspNet.Mvc.ApplicationModels.ControllerModel public ControllerModel Controller { get; set; }
-
PropertyInfo
()¶ Gets the underlying [Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.PropertyInfo](Microsoft.AspNet.Mvc.ApplicationModels.PropertyModel.yml).
Return type: System.Reflection.PropertyInfo public PropertyInfo PropertyInfo { get; }
-
PropertyName
()¶ Gets or sets the name of the property represented by this model.
Return type: System.String public string PropertyName { get; set; }
-