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.4.5
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
 NameDescription
Public methodPropertyBag Initializes a new writable PropertyBag with the default property name comparer.
Public methodPropertyBag(Boolean) Initializes a new PropertyBag with the default property name comparer.
Public methodPropertyBag(IEqualityComparerString) Initializes a new writable PropertyBag.
Public methodPropertyBag(Boolean, IEqualityComparerString) Initializes a new PropertyBag.
Top
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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates 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 methodToStringReturns 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