Méthode | 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 ( EdgeJsNativeFunction function ) : |
Creates a new JavaScript function Requires an active script context. |
|
CreateFunction ( EdgeJsNativeFunction 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 ( EdgeJsPropertyId propertyId, |
Defines a new object's own property from a property descriptor Requires an active script context. |
|
DeleteIndexedProperty ( |
Delete a value at the specified index of an object Requires an active script context. |
|
DeleteProperty ( EdgeJsPropertyId propertyId, bool useStrictRules ) : |
Deletes a 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 a value at the specified index of an object Requires an active script context. |
|
GetOwnPropertyDescriptor ( EdgeJsPropertyId 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 ( EdgeJsPropertyId id ) : |
Gets a 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 ( EdgeJsPropertyId propertyId ) : bool |
Determines whether an object has a property Requires an active script context. |
|
PreventExtension ( ) : void |
Sets a 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 ( EdgeJsPropertyId id, |
Sets a 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. |
|
ToObject ( ) : object |
Retrieves a object representation of an 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. |
Méthode | Description | |
---|---|---|
EdgeJsValue ( |
Initializes a new instance of the EdgeJsValue struct.
|
public static CreateArray ( uint length ) : |
||
length | uint | The initial length of the array |
Résultat |
public static CreateError ( |
||
message | Message for the error object | |
Résultat |
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. |
Résultat |
public static CreateFunction ( EdgeJsNativeFunction function ) : |
||
function | EdgeJsNativeFunction | The method to call when the function is invoked |
Résultat |
public static CreateFunction ( EdgeJsNativeFunction function, |
||
function | EdgeJsNativeFunction | The method to call when the function is invoked |
callbackData | Data to be provided to all function callbacks | |
Résultat |
public static CreateObject ( ) : |
||
Résultat |
public static CreateRangeError ( |
||
message | Message for the error object | |
Résultat |
public static CreateReferenceError ( |
||
message | Message for the error object | |
Résultat |
public static CreateSyntaxError ( |
||
message | Message for the error object | |
Résultat |
public static CreateTypeError ( |
||
message | Message for the error object | |
Résultat |
public static CreateUriError ( |
||
message | Message for the error object | |
Résultat |
public DefineProperty ( EdgeJsPropertyId propertyId, |
||
propertyId | EdgeJsPropertyId | The ID of the property |
propertyDescriptor | The property descriptor | |
Résultat | bool |
public DeleteIndexedProperty ( |
||
index | The index to delete | |
Résultat | void |
public DeleteProperty ( EdgeJsPropertyId propertyId, bool useStrictRules ) : |
||
propertyId | EdgeJsPropertyId | The ID of the property |
useStrictRules | bool | The property set should follow strict mode rules |
Résultat |
public Equals ( |
||
other | The object to compare | |
Résultat | bool |
public static FromBoolean ( bool value ) : |
||
value | bool | The value to be converted |
Résultat |
public static FromDouble ( double value ) : |
||
value | double | The value to be converted |
Résultat |
public static FromInt32 ( int value ) : |
||
value | int | The value to be converted |
Résultat |
public static FromObject ( object value ) : |
||
value | object | The object to be projected |
Résultat |
public static FromString ( string value ) : |
||
value | string | The string to convert to a |
Résultat |
public GetIndexedProperty ( |
||
index | The index to retrieve | |
Résultat |
public GetOwnPropertyDescriptor ( EdgeJsPropertyId propertyId ) : |
||
propertyId | EdgeJsPropertyId | The ID of the property |
Résultat |
public GetOwnPropertyNames ( ) : |
||
Résultat |
public GetProperty ( EdgeJsPropertyId id ) : |
||
id | EdgeJsPropertyId | The ID of the property |
Résultat |
public HasIndexedProperty ( |
||
index | The index to test | |
Résultat | bool |
public HasProperty ( EdgeJsPropertyId propertyId ) : bool | ||
propertyId | EdgeJsPropertyId | The ID of the property |
Résultat | bool |
public SetIndexedProperty ( |
||
index | The index to set | |
value | The value to set | |
Résultat | void |
public SetProperty ( EdgeJsPropertyId id, |
||
id | EdgeJsPropertyId | The ID of the property |
value | The new value of the property | |
useStrictRules | bool | The property set should follow strict mode rules |
Résultat | void |
public StrictEquals ( |
||
other | The object to compare | |
Résultat | bool |