Click or drag to resize

IPropertyBag Interface

Represents a scriptable collection of named properties.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.2.5
Syntax
public interface IPropertyBag : IDictionary<string, Object>, 
	ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable

The IPropertyBag type exposes the following members.

Properties
  NameDescription
Public propertyCount (Inherited from ICollectionKeyValuePairString, Object.)
Public propertyIsReadOnly (Inherited from ICollectionKeyValuePairString, Object.)
Public propertyItem
Gets or sets the element with the specified key.
(Inherited from IDictionaryString, Object.)
Public propertyKeys (Inherited from IDictionaryString, Object.)
Public propertyValues (Inherited from IDictionaryString, Object.)
Top
Methods
  NameDescription
Public methodAdd(T) (Inherited from ICollectionKeyValuePairString, Object.)
Public methodAdd(TKey, TValue) (Inherited from IDictionaryString, Object.)
Public methodClear (Inherited from ICollectionKeyValuePairString, Object.)
Public methodContains (Inherited from ICollectionKeyValuePairString, Object.)
Public methodContainsKey (Inherited from IDictionaryString, Object.)
Public methodCopyTo (Inherited from ICollectionKeyValuePairString, Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerableKeyValuePairString, Object.)
Public methodRemove(T) (Inherited from ICollectionKeyValuePairString, Object.)
Public methodRemove(TKey) (Inherited from IDictionaryString, Object.)
Public methodTryGetValue
Gets the value associated with the specified key.
(Inherited from IDictionaryString, Object.)
Top
Remarks
If an object that implements this interface is added to a script engine (see AddHostObject), script code will be able to access the properties stored in the collection as if they were members of the object itself, using the script language's native syntax for member access. No other members of the object will be accessible. This interface also allows objects to implement dynamic properties for script languages that support them.
See Also