ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ConcurrentPropertyBag Class
ConcurrentPropertyBag Constructor
ConcurrentPropertyBag Properties
ConcurrentPropertyBag Methods
ConcurrentPropertyBag Events

# ConcurrentPropertyBag Class

Provides a thread-safe IPropertyBag implementation.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScriptPropertyBag
Microsoft.ClearScriptConcurrentPropertyBag
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public class ConcurrentPropertyBag : PropertyBag

    Public Class ConcurrentPropertyBag
    	Inherits PropertyBag

    public ref class ConcurrentPropertyBag : public PropertyBag

    type ConcurrentPropertyBag =
        class
            inherit PropertyBag
        end

The ConcurrentPropertyBag type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| ConcurrentPropertyBag | Initializes a new writable ConcurrentPropertyBag with the default property name comparer.
| ConcurrentPropertyBag(Boolean) | Initializes a new ConcurrentPropertyBag with the default property name comparer.
| ConcurrentPropertyBag(IEqualityComparerString) | Initializes a new writable ConcurrentPropertyBag.
| ConcurrentPropertyBag(Boolean, IEqualityComparerString) | Initializes a new ConcurrentPropertyBag.

Top
Properties

| Name | Description
--- | --- | ---
| Comparer | Gets the property name comparer for the PropertyBag. (Inherited from PropertyBag)
| Item | Gets or sets a property value in the PropertyBag. (Inherited from PropertyBag)
| Keys | Gets a collection of property names from the PropertyBag. (Inherited from PropertyBag)
| Values | Gets a collection of property values from the PropertyBag. (Inherited from PropertyBag)

Top
Methods

| Name | Description
--- | --- | ---
| Add | Adds a property to the PropertyBag. (Inherited from PropertyBag)
| ClearNoCheck | Removes all properties without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| ContainsKey | Determines whether the PropertyBag contains a property with the specified name. (Inherited from PropertyBag)
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| Remove | Removes a property from the PropertyBag. (Inherited from PropertyBag)
| RemovePropertyNoCheck | Removes a property without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| SetPropertyNoCheck | Sets a property value without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| ToString | Returns a string that represents the current object. (Inherited from Object)
| TryGetValue | Looks up a property value in the PropertyBag. (Inherited from PropertyBag)

Top
Events

| Name | Description
--- | --- | ---
| PropertyChanged | Occurs when a property is added or replaced, or when the collection is cleared. (Inherited from PropertyBag)

Top
See Also

#### Reference

Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft