PersonalizationStateInfoCollection Class
TOC
Collapse the table of content
Expand the table of content

PersonalizationStateInfoCollection Class

 

Provides a collection of SharedPersonalizationStateInfo and UserPersonalizationStateInfo objects.

Namespace:   System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.WebControls.WebParts.PersonalizationStateInfoCollection

[SerializableAttribute]
public sealed class PersonalizationStateInfoCollection : ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubmethodPersonalizationStateInfoCollection()

Initializes a new instance of the PersonalizationStateInfoCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of items in a collection.

System_CAPS_pubpropertyIsSynchronized

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

System_CAPS_pubpropertyItem[Int32]

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

System_CAPS_pubpropertyItem[String, String]

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

System_CAPS_pubpropertySyncRoot

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

NameDescription
System_CAPS_pubmethodAdd(PersonalizationStateInfo)

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

System_CAPS_pubmethodClear()

Clears the collection of all items.

System_CAPS_pubmethodCopyTo(PersonalizationStateInfo[], Int32)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRemove(String, String)

Removes a PersonalizationStateInfo-derived object from the collection.

System_CAPS_pubmethodSetReadOnly()

Marks the collection as read-only.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft