PropertyModel Class¶
A type which is used to represent a property in a Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel
.
- Namespace
Microsoft.AspNetCore.Mvc.ApplicationModels
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
[DebuggerDisplay("PropertyModel: Name={PropertyName}")]
public class PropertyModel : ICommonModel, IPropertyModel, IBindingModel
-
class
Microsoft.AspNetCore.Mvc.ApplicationModels.
PropertyModel
Constructors¶
-
PropertyModel
(Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel)¶ Creats a new instance of
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel
from a givenMicrosoft.AspNetCore.Mvc.ApplicationModels.PropertyModel
.Arguments: other (Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel) – The Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel
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.AspNetCore.Mvc.ApplicationModels.PropertyModel
.Arguments: - propertyInfo (System.Reflection.PropertyInfo) – The
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.PropertyInfo
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)
- propertyInfo (System.Reflection.PropertyInfo) – The
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
Attributes
¶ Gets any attributes which are annotated on the property.
Return type: System.Collections.Generic.IReadOnlyList<System.Object> public IReadOnlyList<object> Attributes { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
BindingInfo
¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.BindingInfo
associated with this model.Return type: Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo public BindingInfo BindingInfo { get; set; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
Controller
¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel
thisMicrosoft.AspNetCore.Mvc.ApplicationModels.PropertyModel
is associated with.Return type: Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel public ControllerModel Controller { get; set; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
MemberInfo
¶ Return type: System.Reflection.MemberInfo MemberInfo ICommonModel.MemberInfo { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
Name
¶ Return type: System.String string ICommonModel.Name { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
Properties
¶ Return type: System.Collections.Generic.IDictionary<System.Object> public IDictionary<object, object> Properties { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
PropertyInfo
¶ Gets the underlying
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.PropertyInfo
.Return type: System.Reflection.PropertyInfo public PropertyInfo PropertyInfo { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel.
PropertyName
¶ Gets or sets the name of the property represented by this model.
Return type: System.String public string PropertyName { get; set; }
-