PropertyBag Class
Provides an IDictionary interface to pass a collection of key/value pair variables to IIS Manager.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
| 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[Int32] | 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(Int32, Object) | 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(Int32) | 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(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetState() | Serializes the state of the property bag into a string. |
![]() | GetType() | (Inherited from Object.) |
![]() | GetValue<T>(Int32) | Returns the value with the specified key, cast as the specified type. |
![]() | GetValue<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. |
![]() | Remove(Object) | Deletes the item with the specified key from the collection. |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection.CopyTo(Array, Int32) | For a description of this member, see the ICollection.CopyTo method. |
![]() ![]() | IDictionary.Add(Object, Object) | 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(Object) | For a description of this member, see the IDictionary.Contains 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. |
![]() ![]() | ICollection.IsSynchronized | |
![]() ![]() | ICollection.SyncRoot | |
![]() ![]() | IDictionary.IsFixedSize | |
![]() ![]() | IDictionary.IsReadOnly | |
![]() ![]() | IDictionary.Item[Object] |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





