PropertyBag Members

Include Protected Members
Include Inherited Members

The PropertyBag type exposes the following members.

Constructors

 

Name

Description

Public method

PropertyBag

Initializes a new instance of the PropertyBag class.

Top

Methods

 

Name

Description

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetProperty

Overloaded. Returns the property corresponding to this key from the property bag.

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Public method

HasProperty

Returns true if the PropertyBag stores a key/value pair at this key, otherwise false.

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

SetProperty

Stores the value in the property bag at the given key. Adds the key/value pair if it does not already exist in the PropertyBag.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

TryGetProperty<T>

Returns true if the provided key was in the PropertyBag; otherwise false. Does not throw an exception if the key is not found.

Top

Properties

 

Name

Description

Public property

Item

Key-based indexer for PropertyBag.

Top

See Also

Reference

PropertyBag Class

Microsoft.TeamFoundation.Client Namespace