C# Класс JavaScriptEngineSwitcher.ChakraCore.JsRt.JsValueExtensions

Extensions for the JavaScript value
Показать файл Открыть проект

Открытые методы

Метод Описание
DefineProperty ( this source, string propertyName, JsValue propertyDescriptor ) : bool

Defines a new object's own property from a property descriptor

Requires an active script context.

DeleteProperty ( this source, string propertyName, bool useStrictRules ) : JsValue

Deletes an object's property

Requires an active script context.

GetOwnPropertyDescriptor ( this source, string propertyName ) : JsValue

Gets a property descriptor for an object's own property

Requires an active script context.

GetProperty ( this source, string name ) : JsValue

Gets an object's property

Requires an active script context.

HasProperty ( this source, string propertyName ) : bool

Determines whether an object has a property

Requires an active script context.

SetProperty ( this source, string name, JsValue value, bool useStrictRules ) : void

Sets an object's property

Requires an active script context.

Описание методов

DefineProperty() публичный статический Метод

Defines a new object's own property from a property descriptor
Requires an active script context.
public static DefineProperty ( this source, string propertyName, JsValue propertyDescriptor ) : bool
source this The JavaScript value
propertyName string The name of the property
propertyDescriptor JsValue The property descriptor
Результат bool

DeleteProperty() публичный статический Метод

Deletes an object's property
Requires an active script context.
public static DeleteProperty ( this source, string propertyName, bool useStrictRules ) : JsValue
source this The JavaScript value
propertyName string The name of the property
useStrictRules bool The property set should follow strict mode rules
Результат JsValue

GetOwnPropertyDescriptor() публичный статический Метод

Gets a property descriptor for an object's own property
Requires an active script context.
public static GetOwnPropertyDescriptor ( this source, string propertyName ) : JsValue
source this The JavaScript value
propertyName string The name of the property
Результат JsValue

GetProperty() публичный статический Метод

Gets an object's property
Requires an active script context.
public static GetProperty ( this source, string name ) : JsValue
source this The JavaScript value
name string The name of the property
Результат JsValue

HasProperty() публичный статический Метод

Determines whether an object has a property
Requires an active script context.
public static HasProperty ( this source, string propertyName ) : bool
source this The JavaScript value
propertyName string The name of the property
Результат bool

SetProperty() публичный статический Метод

Sets an object's property
Requires an active script context.
public static SetProperty ( this source, string name, JsValue value, bool useStrictRules ) : void
source this The JavaScript value
name string The name of the property
value JsValue The new value of the property
useStrictRules bool The property set should follow strict mode rules
Результат void