PersonalizationStateInfoCollection PersonalizationStateInfoCollection PersonalizationStateInfoCollection PersonalizationStateInfoCollection Class


Provides a collection of SharedPersonalizationStateInfo and UserPersonalizationStateInfo objects.

public ref class PersonalizationStateInfoCollection sealed : System::Collections::ICollection
public sealed class PersonalizationStateInfoCollection : System.Collections.ICollection
type PersonalizationStateInfoCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class PersonalizationStateInfoCollection
Implements ICollection


The PersonalizationStateInfoCollection class provides a collection-based wrapper over a set of SharedPersonalizationStateInfo and UserPersonalizationStateInfo instances. These instances are retrieved by iterating sequentially over the collection, by ordinal index or by key value.

Instances are indexed on a combination of path and user name. This is necessary because SharedPersonalizationStateInfo instances representing shared data are indexed according to Path object, whereas UserPersonalizationStateInfo instances are indexed according to both a Path object and a Username object.

The information objects are maintained in the collection in the order in which they were received from the provider. The collection does not attempt to change the order of the instances or maintain a specific sort order within the collection.


PersonalizationStateInfoCollection() PersonalizationStateInfoCollection() PersonalizationStateInfoCollection() PersonalizationStateInfoCollection()

Initializes a new instance of the PersonalizationStateInfoCollection class.


Count Count Count Count

Gets the number of items in a collection.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

Gets a value indicating whether access to the PersonalizationStateInfoCollection collection is synchronized (thread safe).

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets a PersonalizationStateInfo instance located at the specified ordinal index in the collection.

Item[String, String] Item[String, String] Item[String, String] Item[String, String]

Gets an element from the collection based on the specified parameters.

SyncRoot SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to the PersonalizationStateInfoCollection instance.


Add(PersonalizationStateInfo) Add(PersonalizationStateInfo) Add(PersonalizationStateInfo) Add(PersonalizationStateInfo)

Adds a PersonalizationStateInfo-derived instance to the end of the collection.

Clear() Clear() Clear() Clear()

Clears the collection of all items.

CopyTo(PersonalizationStateInfo[], Int32) CopyTo(PersonalizationStateInfo[], Int32) CopyTo(PersonalizationStateInfo[], Int32) CopyTo(PersonalizationStateInfo[], Int32)

Copies the elements of the PersonalizationStateInfoCollection collection into a PersonalizationStateInfo array, starting at the specified position.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns a standard enumerator capable of iterating over the collection. This method cannot be inherited.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String, String) Remove(String, String) Remove(String, String) Remove(String, String)

Removes a PersonalizationStateInfo-derived object from the collection.

SetReadOnly() SetReadOnly() SetReadOnly() SetReadOnly()

Marks the collection as read-only.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Implements the base CopyTo(Array, Int32) method.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to