JSArray structure
C#
public struct JSArray : IJSValue<JSArray>, IList<JSValue>Public Members
| name | description |
|---|---|
| JSArray() | The default constructor. |
| JSArray(…) | (2 constructors) |
| Item { get; set; } | |
| Length { get; } | |
| Add(…) | |
| AddRange(…) | |
| AddRange<T>(…) | |
| As<T>() | Tries to create a T struct from this instance. It returns null if the T struct cannot be created. |
| AsUnchecked<T>() | Creates a T struct from this instance without checking the enclosed handle type. It must be used only when the handle type is known to be correct. |
| CastTo<T>() | Creates a T struct from this instance. It throws InvalidCastException in case of failure. |
| Clear() | |
| Contains(…) | |
| CopyFrom<T>(…) | Copies array elements from a source array, converting each element to JS values using a conversion delegate. |
| CopyTo(…) | |
| CopyTo<T>(…) | Copies array elements to a destination array, converting each element from JS values using a conversion delegate. |
| Equals(…) | Compares two JS values using JS "strict" equality. |
| override Equals(…) | |
| GetEnumerator() | |
| override GetHashCode() | |
| IndexOf(…) | |
| Insert(…) | |
| Is<T>() | Checks if the T struct can be created from this instance`. |
| Remove(…) | |
| RemoveAt(…) | |
| operator == | Compares two JS values using JS "strict" equality. |
| explicit operator | Explicitly converts a JSValue to a nullable JSArray. (4 operators) |
| implicit operator | Implicitly converts a JSArray to a JSValue. (3 operators) |
| operator != | Compares two JS values using JS "strict" equality. |
| struct Enumerator |
See Also
- interface IJSValue<TSelf>
- struct JSValue
- namespace Microsoft.JavaScript.NodeApi
- JSArray.cs