PropertyBag Class
IIS 7.0
Provides an IDictionary interface to pass a collection of key/value pair variables to IIS Manager.
Namespace:
Microsoft.Web.Management.Server
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
The PropertyBag type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | PropertyBag()()()() | Initializes a new instance of the PropertyBag class with no state tracking. |
![]() | PropertyBag(Boolean) | Initializes a new instance of the PropertyBag class, using the specified state tracking. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of items in the collection. |
![]() | IsTrackingState | Gets a value indicating whether the collection is tracking state. |
![]() | Item | Gets or sets the element at the specified index location in the property bag. |
![]() | Keys | Gets a collection that contains the keys of the collection. |
![]() | ModifiedKeys | Gets the collection of keys that have been modified since the bag was cloned. |
![]() | Values | Gets a collection that contains the values of the collection. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds an element that has the specified integer key and value to the collection. |
![]() | Clone()()()() | Creates a new copy of the collection with state tracking enabled. |
![]() | Clone(Boolean) | Creates a new copy of the collection with state tracking enabled, and that is optionally read-only. |
![]() | Contains | Determines whether the collection contains an element that has the specified key. |
![]() ![]() | CreatePropertyBagFromState(String) | Deserializes a property bag from the specified state. |
![]() ![]() | CreatePropertyBagFromState(String, Boolean) | Deserializes a property bag from the specified state and optionally makes it read-only. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetState | Serializes the state of the property bag into a string. |
![]() | GetType | (Inherited from Object.) |
![]() | GetValue<(Of <<'(T>)>>)(Int32) | Returns the value with the specified key, cast as the specified type. |
![]() | GetValue<(Of <<'(T>)>>)(Int32, T) | Returns the value with the specified key, cast as the specified type, or the specified default value if no item with the specified key is located in the collection. |
![]() | IsModified()()()() | Returns a value indicating whether the collection has been modified since it was created. |
![]() | IsModified(Int32) | Returns a value indicating whether the specified item has been modified since it was created. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | Deletes the item with the specified key from the collection. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IDictionary..::..Add | For a description of this member, see the IDictionary..::..Add method. |
![]() ![]() | IDictionary..::..Clear | For a description of this member, see the IDictionary..::..Clear method. |
![]() ![]() | IDictionary..::..Contains | For a description of this member, see the IDictionary..::..Contains method. |
![]() ![]() | ICollection..::..CopyTo | For a description of this member, see the ICollection..::..CopyTo method. |
![]() ![]() | IDictionary..::..GetEnumerator | For a description of this member, see the IDictionary..::..GetEnumerator method. |
![]() ![]() | IEnumerable..::..GetEnumerator | For a description of this member, see the IEnumerable..::..GetEnumerator method. |
![]() ![]() | IDictionary..::..IsFixedSize | Gets a value indicating whether the collection has a fixed size. |
![]() ![]() | IDictionary..::..IsReadOnly | Gets a value indicating whether the collection is read-only. |
![]() ![]() | ICollection..::..IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). |
![]() ![]() | IDictionary..::..Item | Gets or sets the element with the specified key. |
![]() ![]() | ICollection..::..SyncRoot | For a description of this member, see the ICollection..::..SyncRoot property. |

