ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostFunctions Class
HostFunctions Methods
newObj Method
newObj Method
newObj<T>(Object[]) Method
newObj(IDynamicMetaObjectProvider, Object[]) Method
newObj(Object, Object[]) Method

# HostFunctionsnewObj(IDynamicMetaObjectProvider, Object) Method

Performs dynamic instantiation.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public Object newObj(
    	IDynamicMetaObjectProvider target,
    	params Object[] args
    )

    Public Function newObj (
    	target As IDynamicMetaObjectProvider,
    	ParamArray args As Object()
    ) As Object

    public:
    Object^ newObj(
    	IDynamicMetaObjectProvider^ target,
    	... array<Object^>^ args
    )

    member newObj :
            target : IDynamicMetaObjectProvider *
            args : Object[] -> Object

#### Parameters

target IDynamicMetaObjectProvider
  The dynamic host object that provides the instantiation operation to perform.
args Object
  Optional instantiation arguments.

#### Return Value

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

#### Reference

HostFunctions Class
newObj Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft