Table of Contents

Class Value

Namespace
JavaScriptCore
Assembly
JavaScriptCore-6.0.dll
public sealed class Value : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Value
Implements
Inherited Members

Constructors

Value(bool, params ConstructArgument[])

protected Value(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Value(IntPtr, bool)

protected Value(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ContextPropertyDefinition

public static readonly Property<Context?, Value> ContextPropertyDefinition

Field Value

Property<Context, Value>

Properties

Context

public Context? Context { get; }

Property Value

Context

Methods

ArrayBufferGetData(ref nuint)

[Version("2.38")]
public IntPtr ArrayBufferGetData(ref nuint size)

Parameters

size nuint

Returns

IntPtr

ArrayBufferGetSize()

[Version("2.38")]
public nuint ArrayBufferGetSize()

Returns

nuint

ConstructorCall(uint, Value[])

public Value ConstructorCall(uint nParameters, Value[] parameters)

Parameters

nParameters uint
parameters Value[]

Returns

Value

FunctionCall(uint, Value[])

public Value FunctionCall(uint nParameters, Value[] parameters)

Parameters

nParameters uint
parameters Value[]

Returns

Value

GetContext()

public Context GetContext()

Returns

Context

GetGType()

public static Type GetGType()

Returns

Type

IsArray()

public bool IsArray()

Returns

bool

IsArrayBuffer()

[Version("2.38")]
public bool IsArrayBuffer()

Returns

bool

IsBoolean()

public bool IsBoolean()

Returns

bool

IsConstructor()

public bool IsConstructor()

Returns

bool

IsFunction()

public bool IsFunction()

Returns

bool

IsNull()

public bool IsNull()

Returns

bool

IsNumber()

public bool IsNumber()

Returns

bool

IsObject()

public bool IsObject()

Returns

bool

IsString()

public bool IsString()

Returns

bool

IsTypedArray()

[Version("2.38")]
public bool IsTypedArray()

Returns

bool

IsUndefined()

public bool IsUndefined()

Returns

bool

NewArrayFromStrv(Context, string[])

public static Value NewArrayFromStrv(Context context, string[] strv)

Parameters

context Context
strv string[]

Returns

Value

NewBoolean(Context, bool)

public static Value NewBoolean(Context context, bool value)

Parameters

context Context
value bool

Returns

Value

NewFromJson(Context, string)

[Version("2.28")]
public static Value NewFromJson(Context context, string json)

Parameters

context Context
json string

Returns

Value

NewFunctionVariadic(Context, string?, Callback, Type)

public static Value NewFunctionVariadic(Context context, string? name, Callback callback, Type returnType)

Parameters

context Context
name string
callback Callback
returnType Type

Returns

Value

NewNull(Context)

public static Value NewNull(Context context)

Parameters

context Context

Returns

Value

NewNumber(Context, double)

public static Value NewNumber(Context context, double number)

Parameters

context Context
number double

Returns

Value

NewObject(Context, IntPtr, Class?)

public static Value NewObject(Context context, IntPtr instance, Class? jscClass)

Parameters

context Context
instance IntPtr
jscClass Class

Returns

Value

NewString(Context, string?)

public static Value NewString(Context context, string? @string)

Parameters

context Context
string string

Returns

Value

NewStringFromBytes(Context, Bytes?)

public static Value NewStringFromBytes(Context context, Bytes? bytes)

Parameters

context Context
bytes Bytes

Returns

Value

NewTypedArray(Context, TypedArrayType, nuint)

[Version("2.38")]
public static Value NewTypedArray(Context context, TypedArrayType type, nuint length)

Parameters

context Context
type TypedArrayType
length nuint

Returns

Value

NewTypedArrayWithBuffer(TypedArrayType, nuint, long)

[Version("2.38")]
public Value NewTypedArrayWithBuffer(TypedArrayType type, nuint offset, long length)

Parameters

type TypedArrayType
offset nuint
length long

Returns

Value

NewUndefined(Context)

public static Value NewUndefined(Context context)

Parameters

context Context

Returns

Value

ObjectDefinePropertyData(string, ValuePropertyFlags, Value?)

public void ObjectDefinePropertyData(string propertyName, ValuePropertyFlags flags, Value? propertyValue)

Parameters

propertyName string
flags ValuePropertyFlags
propertyValue Value

ObjectDeleteProperty(string)

public bool ObjectDeleteProperty(string name)

Parameters

name string

Returns

bool

ObjectEnumerateProperties()

public string[]? ObjectEnumerateProperties()

Returns

string[]

ObjectGetProperty(string)

public Value ObjectGetProperty(string name)

Parameters

name string

Returns

Value

ObjectGetPropertyAtIndex(uint)

public Value ObjectGetPropertyAtIndex(uint index)

Parameters

index uint

Returns

Value

ObjectHasProperty(string)

public bool ObjectHasProperty(string name)

Parameters

name string

Returns

bool

ObjectInvokeMethod(string, uint, Value[])

public Value ObjectInvokeMethod(string name, uint nParameters, Value[] parameters)

Parameters

name string
nParameters uint
parameters Value[]

Returns

Value

ObjectIsInstanceOf(string)

public bool ObjectIsInstanceOf(string name)

Parameters

name string

Returns

bool

ObjectSetProperty(string, Value)

public void ObjectSetProperty(string name, Value property)

Parameters

name string
property Value

ObjectSetPropertyAtIndex(uint, Value)

public void ObjectSetPropertyAtIndex(uint index, Value property)

Parameters

index uint
property Value

ToBoolean()

public bool ToBoolean()

Returns

bool

ToDouble()

public double ToDouble()

Returns

double

ToInt32()

public int ToInt32()

Returns

int

ToJson(uint)

[Version("2.28")]
public string ToJson(uint indent)

Parameters

indent uint

Returns

string

ToString()

public string ToString()

Returns

string

ToStringAsBytes()

public Bytes ToStringAsBytes()

Returns

Bytes

TypedArrayGetBuffer()

[Version("2.38")]
public Value TypedArrayGetBuffer()

Returns

Value

TypedArrayGetData(out nuint)

[Version("2.38")]
public IntPtr TypedArrayGetData(out nuint length)

Parameters

length nuint

Returns

IntPtr

TypedArrayGetLength()

[Version("2.38")]
public nuint TypedArrayGetLength()

Returns

nuint

TypedArrayGetOffset()

[Version("2.38")]
public nuint TypedArrayGetOffset()

Returns

nuint

TypedArrayGetSize()

[Version("2.38")]
public nuint TypedArrayGetSize()

Returns

nuint

TypedArrayGetType()

[Version("2.38")]
public TypedArrayType TypedArrayGetType()

Returns

TypedArrayType