Export (0) Print
Expand All

PersonalizationStateInfoCollection Class

Provides a collection of SharedPersonalizationStateInfo and UserPersonalizationStateInfo objects.

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

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

[SerializableAttribute]
public sealed class PersonalizationStateInfoCollection : ICollection, 
	IEnumerable

The PersonalizationStateInfoCollection type exposes the following members.

  NameDescription
Public methodPersonalizationStateInfoCollectionInitializes a new instance of the PersonalizationStateInfoCollection class.
Top

  NameDescription
Public propertyCountGets the number of items in a collection.
Public propertyIsSynchronizedGets a value indicating whether access to the PersonalizationStateInfoCollection collection is synchronized (thread safe).
Public propertyItem[Int32]Gets a PersonalizationStateInfo instance located at the specified ordinal index in the collection.
Public propertyItem[String, String]Gets an element from the collection based on the specified parameters.
Public propertySyncRootGets an object that can be used to synchronize access to the PersonalizationStateInfoCollection instance.
Top

  NameDescription
Public methodAddAdds a PersonalizationStateInfo-derived instance to the end of the collection.
Public methodClearClears the collection of all items.
Public methodCopyToCopies the elements of the PersonalizationStateInfoCollection collection into a PersonalizationStateInfo array, starting at the specified position.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEnumeratorReturns a standard enumerator capable of iterating over the collection. This method cannot be inherited.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodRemoveRemoves a PersonalizationStateInfo-derived object from the collection.
Public methodSetReadOnlyMarks the collection as read-only.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection.CopyToImplements the base CopyTo method.
Top

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

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft