C# Class MsieJavaScriptEngine.JsRt.Ie.IeJsValueExtensions

Extensions for the “IE” JavaScript value
Show file Open project: Taritsyn/MsieJavaScriptEngine

Public Methods

Method Description
DefineProperty ( this source, string propertyName, IeJsValue 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 ) : IeJsValue

Deletes an object's property

Requires an active script context.

GetOwnPropertyDescriptor ( this source, string propertyName ) : IeJsValue

Gets a property descriptor for an object's own property

Requires an active script context.

GetProperty ( this source, string name ) : IeJsValue

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, IeJsValue value, bool useStrictRules ) : void

Sets an object's property

Requires an active script context.

Method Details

DefineProperty() public static method

Defines a new object's own property from a property descriptor
Requires an active script context.
public static DefineProperty ( this source, string propertyName, IeJsValue propertyDescriptor ) : bool
source this The JavaScript value
propertyName string The name of the property
propertyDescriptor IeJsValue The property descriptor
return bool

DeleteProperty() public static method

Deletes an object's property
Requires an active script context.
public static DeleteProperty ( this source, string propertyName, bool useStrictRules ) : IeJsValue
source this The JavaScript value
propertyName string The name of the property
useStrictRules bool The property set should follow strict mode rules
return IeJsValue

GetOwnPropertyDescriptor() public static method

Gets a property descriptor for an object's own property
Requires an active script context.
public static GetOwnPropertyDescriptor ( this source, string propertyName ) : IeJsValue
source this The JavaScript value
propertyName string The name of the property
return IeJsValue

GetProperty() public static method

Gets an object's property
Requires an active script context.
public static GetProperty ( this source, string name ) : IeJsValue
source this The JavaScript value
name string The name of the property
return IeJsValue

HasProperty() public static method

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
return bool

SetProperty() public static method

Sets an object's property
Requires an active script context.
public static SetProperty ( this source, string name, IeJsValue value, bool useStrictRules ) : void
source this The JavaScript value
name string The name of the property
value IeJsValue The new value of the property
useStrictRules bool The property set should follow strict mode rules
return void