JSObject structure
C#
public struct JSObject : IDictionary<JSValue, JSValue>, IJSValue<JSObject>Public Members
| name | description |
|---|---|
| JSObject() | The default constructor. |
| JSObject(…) | (2 constructors) |
| Item { get; set; } | (2 indexers) |
| Keys { get; } | |
| Add(…) | (2 methods) |
| 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. |
| CallMethod(…) | (6 methods) |
| CastTo<T>() | Creates a T struct from this instance. It throws InvalidCastException in case of failure. |
| Contains(…) | |
| ContainsKey(…) | |
| CopyTo(…) | |
| DefineProperties(…) | (2 methods) |
| Equals(…) | Compares two JS values using JS "strict" equality. |
| override Equals(…) | |
| GetEnumerator() | |
| override GetHashCode() | |
| Is<T>() | Checks if the T struct can be created from this instance`. |
| Remove(…) | (2 methods) |
| TryGetValue(…) | |
| TryUnwrap<T>(…) | |
| Unwrap<T>() | |
| Wrap(…) | |
| operator == | Compares two JS values using JS "strict" equality. |
| explicit operator | Explicitly converts a JSValue to a nullable JSObject. (2 operators) |
| implicit operator | Implicitly converts a JSObject to a JSValue. |
| operator != | Compares two JS values using JS "strict" equality. |
| struct Enumerator |
See Also
- struct JSValue
- interface IJSValue<TSelf>
- namespace Microsoft.JavaScript.NodeApi
- JSObject.cs