| SerializableEntityLoadAll(String) Method |
This is preliminary documentation and is subject to change.
Synchronously enumerates a JSON array of the serialized Wikibase entities contained in the specified stream.
Namespace: WikiClientLibrary.WikibaseAssembly: WikiClientLibrary.Wikibase (in WikiClientLibrary.Wikibase.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static IEnumerable<SerializableEntity?> LoadAll(
string fileName
)
Public Shared Function LoadAll (
fileName As String
) As IEnumerable(Of SerializableEntity)
Dim fileName As String
Dim returnValue As IEnumerable(Of SerializableEntity)
returnValue = SerializableEntity.LoadAll(fileName)
public:
static IEnumerable<SerializableEntity^>^ LoadAll(
String^ fileName
)
static member LoadAll :
fileName : string -> IEnumerable<SerializableEntity>
Parameters
- fileName String
- The path of file containing the serialized JSON array of entities.
Return Value
IEnumerableSerializableEntity
A sequence that, when enumerated, will read a JSON array from the stream, 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 stream does not contain a JSON array of objects; OR there is extraneous content after the root JSON array. |
See Also