Method | Description | |
---|---|---|
AddRef ( ) : uint |
Adds a reference to the object This only needs to be called on objects that are not going to be stored somewhere on the stack. Calling AddRef ensures that the JavaScript object the value refers to will not be freed until Release is called |
|
CallFunction ( ) : |
Invokes a function Requires an active script context. |
|
ConstructObject ( ) : |
Invokes a function as a constructor Requires an active script context. |
|
ConvertToBoolean ( ) : |
Converts a value to Requires an active script context. |
|
ConvertToNumber ( ) : |
Converts a value to Requires an active script context. |
|
ConvertToObject ( ) : |
Converts a value to Requires an active script context. |
|
ConvertToString ( ) : |
Converts a value to Requires an active script context. |
|
CreateArray ( uint length ) : |
Creates a JavaScript array object Requires an active script context. |
|
CreateError ( |
Creates a new JavaScript error object Requires an active script context. |
|
CreateExternalObject ( |
Creates a new Requires an active script context. |
|
CreateFunction ( JsNativeFunction function ) : |
Creates a new JavaScript function Requires an active script context. |
|
CreateFunction ( JsNativeFunction function, |
Creates a new JavaScript function Requires an active script context. |
|
CreateObject ( ) : |
Creates a new Requires an active script context. |
|
CreateRangeError ( |
Creates a new JavaScript RangeError error object Requires an active script context. |
|
CreateReferenceError ( |
Creates a new JavaScript ReferenceError error object Requires an active script context. |
|
CreateSyntaxError ( |
Creates a new JavaScript SyntaxError error object Requires an active script context. |
|
CreateTypeError ( |
Creates a new JavaScript TypeError error object Requires an active script context. |
|
CreateUriError ( |
Creates a new JavaScript URIError error object Requires an active script context. |
|
DefineProperty ( JsPropertyId propertyId, |
Defines a new object's own property from a property descriptor Requires an active script context. |
|
DeleteIndexedProperty ( |
Deletes d value at the specified index of an object Requires an active script context. |
|
DeleteProperty ( JsPropertyId propertyId, bool useStrictRules ) : |
Deletes an object's property Requires an active script context. |
|
Equals ( |
Compare two JavaScript values for equality This function is equivalent to the "==" operator in JavaScript. Requires an active script context. |
|
FromBoolean ( bool value ) : |
Creates a Requires an active script context. |
|
FromDouble ( double value ) : |
Creates a Requires an active script context. |
|
FromInt32 ( int value ) : |
Creates a Requires an active script context. |
|
FromString ( string value ) : |
Creates a Requires an active script context. |
|
GetIndexedProperty ( |
Retrieves a value at the specified index of an object Requires an active script context. |
|
GetOwnPropertyDescriptor ( JsPropertyId propertyId ) : |
Gets a property descriptor for an object's own property Requires an active script context. |
|
GetOwnPropertyNames ( ) : |
Gets a list of all properties on the object Requires an active script context. |
|
GetProperty ( JsPropertyId id ) : |
Gets an object's property Requires an active script context. |
|
HasIndexedProperty ( |
Test if an object has a value at the specified index Requires an active script context. |
|
HasProperty ( JsPropertyId propertyId ) : bool |
Determines whether an object has a property Requires an active script context. |
|
PreventExtension ( ) : void |
Sets an object to not be extensible Requires an active script context |
|
Release ( ) : uint |
Releases a reference to the object Removes a reference that was created by AddRef. |
|
SetIndexedProperty ( |
Sets a value at the specified index of an object Requires an active script context. |
|
SetProperty ( JsPropertyId id, |
Sets an object's property Requires an active script context. |
|
StrictEquals ( |
Compare two JavaScript values for strict equality This function is equivalent to the "===" operator in JavaScript. Requires an active script context. |
|
ToBoolean ( ) : bool |
Retrieves a Requires an active script context. |
|
ToDouble ( ) : double |
Retrieves a This function retrieves the value of a Number value. It will fail with Requires an active script context. |
|
ToInt32 ( ) : int |
Retrieves a This function retrieves the value of a Number value. It will fail with Requires an active script context. |
|
ToString ( ) : string |
Retrieves a string pointer of a This function retrieves the string pointer of a Requires an active script context. |
Method | Description | |
---|---|---|
JsValue ( |
Initializes a new instance of the JsValue struct
|
public static CreateArray ( uint length ) : |
||
length | uint | The initial length of the array |
return |
public static CreateError ( |
||
message | Message for the error object | |
return |
public static CreateExternalObject ( |
||
data | External data that the object will represent. May be null | |
finalizer | JsObjectFinalizeCallback | The callback for when the object is finalized. May be null. |
return |
public static CreateFunction ( JsNativeFunction function ) : |
||
function | JsNativeFunction | The method to call when the function is invoked |
return |
public static CreateFunction ( JsNativeFunction function, |
||
function | JsNativeFunction | The method to call when the function is invoked |
callbackData | Data to be provided to all function callbacks | |
return |
public static CreateRangeError ( |
||
message | Message for the error object | |
return |
public static CreateReferenceError ( |
||
message | Message for the error object | |
return |
public static CreateSyntaxError ( |
||
message | Message for the error object | |
return |
public static CreateTypeError ( |
||
message | Message for the error object | |
return |
public static CreateUriError ( |
||
message | Message for the error object | |
return |
public DefineProperty ( JsPropertyId propertyId, |
||
propertyId | JsPropertyId | The ID of the property |
propertyDescriptor | The property descriptor | |
return | bool |
public DeleteIndexedProperty ( |
||
index | The index to delete | |
return | void |
public DeleteProperty ( JsPropertyId propertyId, bool useStrictRules ) : |
||
propertyId | JsPropertyId | The ID of the property |
useStrictRules | bool | The property set should follow strict mode rules |
return |
public Equals ( |
||
other | The object to compare | |
return | bool |
public static FromBoolean ( bool value ) : |
||
value | bool | The value to be converted |
return |
public static FromDouble ( double value ) : |
||
value | double | The value to be converted |
return |
public static FromInt32 ( int value ) : |
||
value | int | The value to be converted |
return |
public static FromString ( string value ) : |
||
value | string | The string to convert to a |
return |
public GetIndexedProperty ( |
||
index | The index to retrieve | |
return |
public GetOwnPropertyDescriptor ( JsPropertyId propertyId ) : |
||
propertyId | JsPropertyId | The ID of the property |
return |
public GetProperty ( JsPropertyId id ) : |
||
id | JsPropertyId | The ID of the property |
return |
public HasIndexedProperty ( |
||
index | The index to test | |
return | bool |
public HasProperty ( JsPropertyId propertyId ) : bool | ||
propertyId | JsPropertyId | The ID of the property |
return | bool |
public SetIndexedProperty ( |
||
index | The index to set | |
value | The value to set | |
return | void |
public SetProperty ( JsPropertyId id, |
||
id | JsPropertyId | The ID of the property |
value | The new value of the property | |
useStrictRules | bool | The property set should follow strict mode rules |
return | void |
public StrictEquals ( |
||
other | The object to compare | |
return | bool |