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 the value to Requires an active script context. |
|
ConvertToNumber ( ) : |
Converts the value to Requires an active script context. |
|
ConvertToObject ( ) : |
Converts the value to Requires an active script context. |
|
ConvertToString ( ) : |
Converts the 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 ( JavaScriptNativeFunction function ) : |
Creates a new JavaScript function. Requires an active script context. |
|
CreateFunction ( JavaScriptNativeFunction 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 ( JavaScriptPropertyId propertyId, |
Defines a new object's own property from a property descriptor. Requires an active script context. |
|
DeleteIndexedProperty ( |
Delete the value at the specified index of an object. Requires an active script context. |
|
DeleteProperty ( JavaScriptPropertyId 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. |
|
FromObject ( object value ) : |
Creates a JavaScript value that is a projection of the passed in object. Requires an active script context. |
|
FromString ( string value ) : |
Creates a Requires an active script context. |
|
GetIndexedProperty ( |
Retrieve the value at the specified index of an object. Requires an active script context. |
|
GetOwnPropertyDescriptor ( JavaScriptPropertyId propertyId ) : |
Gets a property descriptor for an object's own property. Requires an active script context. |
|
GetOwnPropertyNames ( ) : |
Gets the list of all properties on the object. Requires an active script context. |
|
GetProperty ( JavaScriptPropertyId 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 ( JavaScriptPropertyId 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 ( |
Set the value at the specified index of an object. Requires an active script context. |
|
SetProperty ( JavaScriptPropertyId 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 the Requires an active script context. |
|
ToDouble ( ) : double |
Retrieves the This function retrieves the value of a Number value. It will fail with Requires an active script context. |
|
ToObject ( ) : object |
Retrieves the object representation of an Requires an active script context. |
|
ToString ( ) : string |
Retrieves the string pointer of a This function retrieves the string pointer of a Requires an active script context. |
Method | Description | |
---|---|---|
JavaScriptValue ( |
Initializes a new instance of the JavaScriptValue struct.
|
public ConvertToBoolean ( ) : |
||
return |
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 | JavaScriptObjectFinalizeCallback | /// A callback for when the object is finalized. May be null. /// |
return |
public static CreateFunction ( JavaScriptNativeFunction function ) : |
||
function | JavaScriptNativeFunction | The method to call when the function is invoked. |
return |
public static CreateFunction ( JavaScriptNativeFunction function, |
||
function | JavaScriptNativeFunction | The method to call when the function is invoked. |
callbackData | Data to be provided to all function callbacks. | |
return |
public static CreateObject ( ) : |
||
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 ( JavaScriptPropertyId propertyId, |
||
propertyId | JavaScriptPropertyId | The ID of the property. |
propertyDescriptor | The property descriptor. | |
return | bool |
public DeleteIndexedProperty ( |
||
index | The index to delete. | |
return | void |
public DeleteProperty ( JavaScriptPropertyId propertyId, bool useStrictRules ) : |
||
propertyId | JavaScriptPropertyId | 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 FromObject ( object value ) : |
||
value | object | An object to be projected. |
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 ( JavaScriptPropertyId propertyId ) : |
||
propertyId | JavaScriptPropertyId | The ID of the property. |
return |
public GetOwnPropertyNames ( ) : |
||
return |
public GetProperty ( JavaScriptPropertyId id ) : |
||
id | JavaScriptPropertyId | The ID of the property. |
return |
public HasIndexedProperty ( |
||
index | The index to test. | |
return | bool |
public HasProperty ( JavaScriptPropertyId propertyId ) : bool | ||
propertyId | JavaScriptPropertyId | The ID of the property. |
return | bool |
public SetIndexedProperty ( |
||
index | The index to set. | |
value | The value to set. | |
return | void |
public SetProperty ( JavaScriptPropertyId id, |
||
id | JavaScriptPropertyId | 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 |