ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostFunctions Class
HostFunctions Methods
asType<T> Method
cast<T> Method
del<T> Method
flags<T> Method
func Method
getElement Method
getProperty Method
isNull Method
isType<T> Method
isTypeObj Method
newArr Method
newObj Method
newVar<T> Method
proc Method
removeElement Method
removeProperty Method
setElement Method
setProperty Method
toByte Method
toChar Method
toDecimal Method
toDouble Method
toInt16 Method
toInt32 Method
toInt64 Method
toSByte Method
toSingle Method
toStaticType Method
toUInt16 Method
toUInt32 Method
toUInt64 Method
tryCatch Method
typeOf Method

# HostFunctionsremoveElement Method

Removes an element from a dynamic host object that implements IDynamicMetaObjectProvider.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool removeElement(
    	IDynamicMetaObjectProvider target,
    	params Object[] indices
    )

    Public Function removeElement (
    	target As IDynamicMetaObjectProvider,
    	ParamArray indices As Object()
    ) As Boolean

    public:
    bool removeElement(
    	IDynamicMetaObjectProvider^ target,
    	... array<Object^>^ indices
    )

    member removeElement :
            target : IDynamicMetaObjectProvider *
            indices : Object[] -> bool

#### Parameters

target IDynamicMetaObjectProvider
  The dynamic host object that contains the element to remove.
indices Object
  One or more indices that identify the element to remove.

#### Return Value

Boolean
True if the element was found and removed, false otherwise.
Remarks
This function is provided for script languages that do not support general indexing.
See Also

#### Reference

HostFunctions Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft