PropertyCollection Class
Allows property owners to control the lifetimes of the properties in the collection.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Utilities.PropertyCollection
Namespace: Microsoft.VisualStudio.Utilities
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Syntax
'Declaração
Public Class PropertyCollection
public class PropertyCollection
public ref class PropertyCollection
type PropertyCollection = class end
public class PropertyCollection
The PropertyCollection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PropertyCollection | Initializes a new instance of PropertyCollection. |
Top
Properties
Name | Description | |
---|---|---|
Item | Gets or sets the Object with the specified key. | |
PropertyList | Returns the property collection as a read-only collection. |
Top
Methods
Name | Description | |
---|---|---|
AddProperty | Adds a new property to the collection. | |
ContainsProperty | Determines whether the property collection contains a property for the specified key. | |
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 a hash function for a particular type. (Inherited from Object.) | |
GetOrCreateSingletonProperty<T>(Func<TResult>) | Gets or creates a property of type T from the property collection. | |
GetOrCreateSingletonProperty<T>(Object, Func<TResult>) | Gets or creates a property of typeT from the property collection. | |
GetProperty(Object) | Gets the property associated with the specified key. | |
GetProperty<TProperty>(Object) | Gets the property associated with the specified key. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveProperty | Removes the property associated with the specified key. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetProperty<TProperty> | Gets the property associated with the specified key. |
Top
Remarks
This collection is synchronized in order to allow access by multiple threads.
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.