| SerializableEntityLoadAll(JsonReader) Method |
This is preliminary documentation and is subject to change.
Enumerates all the entities from JSON array of serialized contained in the JSON reader.
Namespace: WikiClientLibrary.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax public static IEnumerable<SerializableEntity?> LoadAll(
JsonReader reader
)
Public Shared Function LoadAll (
reader As JsonReader
) As IEnumerable(Of SerializableEntity)
Dim reader As JsonReader
Dim returnValue As IEnumerable(Of SerializableEntity)
returnValue = SerializableEntity.LoadAll(reader)
public:
static IEnumerable<SerializableEntity^>^ LoadAll(
JsonReader^ reader
)
static member LoadAll :
reader : JsonReader -> IEnumerable<SerializableEntity>
Parameters
- reader JsonReader
- The reader from which to read serialized entity JSON.
Return Value
IEnumerableSerializableEntity
A sequence that, when enumerated, will read a JSON array from reader, and parses it
into a sequence of
SerializableEntitys.
If there is
null in the JSON array,
null will be enumerated in the sequence.
Exceptions Exception | Condition |
---|
JsonException | The JSON is invalid. |
Remarks This method is recommended when you are working with a large JSON dump of Wikibase entities,
because it only put the current enumerated entity in the memory. Still, you can use
ToListTSource(IEnumerableTSource) to get all the entities at one time.
If you stopped enumerating the returned sequence, the reader will stop
in the middle of array, at the end of current enumerated entity.
See Also