Click or drag to resize

HostFunctionssetProperty Method (IDynamicMetaObjectProvider, String, Object)

Sets a property value in a dynamic host object that implements IDynamicMetaObjectProvider.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.5
Syntax
public Object setProperty(
	IDynamicMetaObjectProvider target,
	string name,
	Object value
)

Parameters

target
Type: System.DynamicIDynamicMetaObjectProvider
The dynamic host object that contains the property to set.
name
Type: SystemString
The name of the property to set.
value
Type: SystemObject
The new value of the specified property.

Return Value

Type: Object
The result of the operation, which is usually the value assigned to the specified property.
Remarks
This function is provided for script languages that do not support dynamic properties.
See Also