PropertyInformationCollection Class
Contains a collection of PropertyInformation objects. This class cannot be inherited.
Assembly: System.Configuration (in System.Configuration.dll)
System.Collections.Specialized.NameObjectCollectionBase
System.Configuration.PropertyInformationCollection
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of key/value pairs contained in the NameObjectCollectionBase instance.(Inherited from NameObjectCollectionBase.) |
![]() | Item(String) | Gets the PropertyInformation object in the collection, based on the specified property name. |
![]() | Keys | Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.(Inherited from NameObjectCollectionBase.) |
| Name | Description | |
|---|---|---|
![]() | CopyTo(PropertyInformation(), Int32) | Copies the entire PropertyInformationCollection collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetEnumerator() | Gets an IEnumerator object, which is used to iterate through this PropertyInformationCollection collection.(Overrides NameObjectCollectionBase.GetEnumerator().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | Populates a SerializationInfo object with the data needed to serialize the PropertyInformationCollection instance.(Overrides NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext).) |
![]() | GetType() | |
![]() | OnDeserialization(Object) | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.(Inherited from NameObjectCollectionBase.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection.CopyTo(Array, Int32) | Copies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.(Inherited from NameObjectCollectionBase.) |
![]() ![]() | ICollection.IsSynchronized | Gets a value indicating whether access to the NameObjectCollectionBase object is synchronized (thread safe).(Inherited from NameObjectCollectionBase.) |
![]() ![]() | ICollection.SyncRoot | Gets an object that can be used to synchronize access to the NameObjectCollectionBase object.(Inherited from NameObjectCollectionBase.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast(Of TResult)() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType(Of TResult)() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
The PropertyInformationCollection object contains a collection of PropertyInformation objects. A PropertyInformation object contains the details of an individual attribute within the configuration. The PropertyInformationCollection object is derived from the associated NameObjectCollectionBase object.
The following code example demonstrates how to use the PropertyInformationCollection class.
' Create EllementInformation object. Dim elementInfo As ElementInformation = _ configSection.ElementInformation() ' Create a PropertyInformationCollection object. Dim propertyInfoCollection As PropertyInformationCollection = _ elementInfo.Properties() ' Create a PropertyInformation object. Dim myPropertyInfo As PropertyInformation = _ propertyInfoCollection("enabled") ' Display the property value. Console.WriteLine _ ("anonymousIdentification Section - Enabled: {0}", _ myPropertyInfo.Value)
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




