Click or drag to resize

PropertyBag Class

Provides a default IPropertyBag implementation.
Inheritance Hierarchy

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.3.1
Syntax
public class PropertyBag : IPropertyBag, 
	IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IEnumerable, 
	INotifyPropertyChanged, IScriptableObject

The PropertyBag type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyComparer
Gets the property name comparer for the PropertyBag.
Public propertyItem
Gets or sets a property value in the PropertyBag.
Public propertyKeys
Gets a collection of property names from the PropertyBag.
Public propertyValues
Gets a collection of property values from the PropertyBag.
Top
Methods
  NameDescription
Public methodAdd
Adds a property to the PropertyBag.
Public methodClearNoCheck
Removes all properties without checking whether the PropertyBag is read-only.
Public methodContainsKey
Determines whether the PropertyBag contains a property with the specified name.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes a property from the PropertyBag.
Public methodRemovePropertyNoCheck
Removes a property without checking whether the PropertyBag is read-only.
Public methodSetPropertyNoCheck
Sets a property value without checking whether the PropertyBag is read-only.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Looks up a property value in the PropertyBag.
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property is added or replaced, or when the collection is cleared.
Top
See Also