Click or drag to resize

HostFunctionsnewObj Method (IDynamicMetaObjectProvider, Object)

Performs dynamic instantiation.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.5
Syntax
public Object newObj(
	IDynamicMetaObjectProvider target,
	params Object[] args
)

Parameters

target
Type: System.DynamicIDynamicMetaObjectProvider
The dynamic host object that provides the instantiation operation to perform.
args
Type: SystemObject
Optional instantiation arguments.

Return Value

Type: Object
The result of the operation, which is usually a new dynamic host object.
Remarks
This function is provided for script languages that do not support external instantiation.
See Also