ModelAttributes Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to the combined list of attributes associated with a Type, property, or parameter.
public ref class ModelAttributes
public class ModelAttributes
type ModelAttributes = class
Public Class ModelAttributes
- Inheritance
-
ModelAttributes
Constructors
ModelAttributes(IEnumerable<Object>, IEnumerable<Object>) |
Obsolete.
Creates a new ModelAttributes for a property. |
ModelAttributes(IEnumerable<Object>) |
Obsolete.
Creates a new ModelAttributes for a Type. |
Properties
Attributes |
Gets the set of all attributes. If this instance represents the attributes for a property, the attributes on the property definition are before those on the property's Type. If this instance represents the attributes for a parameter, the attributes on the parameter definition are before those on the parameter's Type. |
ParameterAttributes |
Gets the set of attributes on the parameter, or |
PropertyAttributes |
Gets the set of attributes on the property, or |
TypeAttributes |
Gets the set of attributes on the Type. If this instance represents a property, then TypeAttributes contains attributes retrieved from PropertyType. If this instance represents a parameter, then contains attributes retrieved from ParameterType. |
Methods
GetAttributesForParameter(ParameterInfo, Type) |
Gets the attributes for the given |
GetAttributesForParameter(ParameterInfo) |
Gets the attributes for the given |
GetAttributesForProperty(Type, PropertyInfo, Type) |
Gets the attributes for the given |
GetAttributesForProperty(Type, PropertyInfo) |
Gets the attributes for the given |
GetAttributesForType(Type) |
Gets the attributes for the given |