JsonArray class winrt Class

Represents a JSON array.

Inheritance
Implemented types
Available Extensions

Constructors

JsonArray({Allocator allocator = calloc})
JsonArray.fromRawPointer(Pointer<COMObject> ptr)

Properties

hashCode int
The hash code for this object.
no setterinherited
ptr Pointer<COMObject>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
Gets the number of items in the vector.
no setteroverride
valueType JsonValueType
no setteroverride

Methods

addRef() int
inherited
append(IJsonValue value) → void
Appends an item to the end of the vector.
override
clear() → void
Removes all items from the vector.
override
first() IIterator<IJsonValue>
Returns an iterator for the items in the collection.
override
getArray() JsonArray
override
getArrayAt(int index) JsonArray
override
getAt(int index) IJsonValue
Returns the item at the specified index in the vector.
override
getBoolean() bool
override
getBooleanAt(int index) bool
override
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) int
inherited
getMany(int startIndex, int valueSize, Pointer<NativeType> value) int
Retrieves multiple items from the the vector beginning at the given index.
override
getNumber() double
override
getNumberAt(int index) double
override
getObject() JsonObject
override
getObjectAt(int index) JsonObject
override
getRuntimeClassName(Pointer<IntPtr> className) int
inherited
getString() String
override
getStringAt(int index) String
override
getTrustLevel(Pointer<Int32> trustLevel) int
inherited
getView() List<IJsonValue>
Returns an immutable view of the vector.
override
indexOf(IJsonValue value, Pointer<Uint32> index) bool
Retrieves the index of a specified item in the vector.
override
insertAt(int index, IJsonValue value) → void
Inserts an item at a specified index in the vector.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) int
inherited
release() int
inherited
removeAt(int index) → void
Removes the item at the specified index in the vector.
override
removeAtEnd() → void
Removes the last item from the vector.
override
replaceAll(List<IJsonValue> value) → void
Replaces all the items in the vector with the specified items.
override
setAt(int index, IJsonValue value) → void
Sets the value at the specified index in the vector.
override
stringify() String
override
toInterface(String iid) Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toList() List<IJsonValue>
Creates an unmodifiable List from the current IVector instance.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String input) JsonArray
tryParse(String input, JsonArray result) bool