Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Serialization
ReflectionAttributeProvider Class
ReflectionAttributeProvider Methods
GetAttributes Method
GetAttributes Method (Boolean)
GetAttributes Method (Type, Boolean)
ReflectionAttributeProvider
GetAttributes 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
C#
Copy
public
IList
<
Attribute
>
GetAttributes
(
Type
attributeType
,
bool
inherit
)
Parameters
attributeType
Type:
System
Type
The type of the attributes.
inherit
Type:
System
Boolean
When
true
, look up the hierarchy chain for the inherited custom attribute.
Return Value
Type:
IList
Attribute
A collection of
Attribute
s, or an empty collection.
Implements
IAttributeProvider
GetAttributes(Type, Boolean)
See Also
Reference
ReflectionAttributeProvider Class
GetAttributes Overload
Newtonsoft.Json.Serialization Namespace
Json.NET Home