| IAttributeProviderGetAttributes Method (Type, Boolean) |
Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
Namespace:
Newtonsoft.Json.Serialization
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax IList<Attribute> GetAttributes(
Type attributeType,
bool inherit
)
Parameters
- attributeType
- Type: SystemType
The type of the attributes. - inherit
- Type: SystemBoolean
When true, look up the hierarchy chain for the inherited custom attribute.
Return Value
Type:
IListAttributeA collection of
Attributes, or an empty collection.
See Also