Json.NET - Quick Starts & API Documentation
Properties Method (source)
Namespaces ► Newtonsoft.Json.Linq ► Extensions ► Properties(IEnumerable<(Of <<'(JObject>)>>))
Returns a collection of child properties of every object in the source collection.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IJEnumerable<JProperty> Properties( this IEnumerable<JObject> source )
<ExtensionAttribute> _ Public Shared Function Properties ( _ source As IEnumerable(Of JObject) _ ) As IJEnumerable(Of JProperty)
[ExtensionAttribute] public: static IJEnumerable<JProperty^>^ Properties( IEnumerable<JObject^>^ source )
Parameters
- source (IEnumerable<(Of <(<'JObject>)>)>)
- An IEnumerable<(Of <(<'T>)>)> of JObject that contains the source collection.
Return Value
An IEnumerable<(Of <(<'T>)>)> of JProperty that contains the properties of every object in the source collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'JObject>)>)>. When you use instance method syntax to call this method, omit the first parameter.