PropertyBag Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a property bag.
public sealed class PropertyBag
type PropertyBag = class
Public NotInheritable Class PropertyBag
- Inheritance
-
PropertyBag
Constructors
| Name | Description |
|---|---|
| PropertyBag() |
Initializes a new instance of the PropertyBag class. |
| PropertyBag(IEnumerable<IProperty>) |
Initializes a new instance of the PropertyBag class. |
| PropertyBag(IProperty[]) |
Initializes a new instance of the PropertyBag class. |
Properties
| Name | Description |
|---|---|
| Count |
Gets the number of properties in the bag. |
Methods
| Name | Description |
|---|---|
| Add(IProperty) |
Adds a property to the bag. |
| Any<TProperty>() |
Determines whether the bag contains a property of the specified type. |
| AsEnumerable() |
Returns an enumerable that iterates through the collection. |
| FirstOrDefault<TProperty>() |
Returns the first property of the |
| GetEnumerator() |
Returns an enumerator that iterates through the collection. |
| OfType<TProperty>() |
Gets the properties of the |
| Single<TProperty>() |
Returns the only property of the |
| SingleOrDefault<TProperty>() |
Returns the only property of the |