ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
PropertyBag Class
PropertyBag Methods
Add Method
ClearNoCheck Method
ContainsKey Method
Remove Method
RemovePropertyNoCheck Method
SetPropertyNoCheck Method
TryGetValue Method

# PropertyBagAdd Method

Adds a property to the PropertyBag.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void Add(
    	string key,
    	Object value
    )

    Public Sub Add (
    	key As String,
    	value As Object
    )

    public:
    virtual void Add(
    	String^ key,
    	Object^ value
    ) sealed

    abstract Add :
            key : string *
            value : Object -> unit
    override Add :
            key : string *
            value : Object -> unit

#### Parameters

key String
  The name of the property to add.
value Object
  The property value.

#### Implements

IDictionaryTKey, TValue Add(TKey, TValue)
See Also

#### Reference

PropertyBag Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft