共用方式為


PropertyBag Class

Represents an unordered collection of properties and their values.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Client.PropertyBag

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'宣告
<SerializableAttribute> _
Public Class PropertyBag
[SerializableAttribute]
public class PropertyBag
[SerializableAttribute]
public ref class PropertyBag
[<SerializableAttribute>]
type PropertyBag =  class end
public class PropertyBag

The PropertyBag type exposes the following members.

Constructors

  Name Description
Public method PropertyBag Initializes a new instance of the PropertyBag class.

Top

Properties

  Name Description
Public property Item Gets the property in this collection that has the specified name.

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(String) Gets the property in this collection that has the specified name.
Public method GetProperty<T>(String) Gets the property in this collection that has the specified name.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasProperty Checks whether this collection has a property that has the specified name.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetProperty Sets a property in this collection to the specified value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetProperty<T> Attempts to get a property that has the specified name.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Client Namespace