ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostFunctions Class
HostFunctions Methods
removeProperty Method
removeProperty(IDynamicMetaObjectProvider, String) Method
removeProperty(IPropertyBag, String) Method

# HostFunctionsremoveProperty(IPropertyBag, String) Method

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

    public bool removeProperty(
    	IPropertyBag target,
    	string name
    )

    Public Function removeProperty (
    	target As IPropertyBag,
    	name As String
    ) As Boolean

    public:
    bool removeProperty(
    	IPropertyBag^ target,
    	String^ name
    )

    member removeProperty :
            target : IPropertyBag *
            name : string -> bool

#### Parameters

target IPropertyBag
  The dynamic host object that contains the property to remove.
name String
  The name of the property to remove.

#### Return Value

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

#### Reference

HostFunctions Class
removeProperty Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft