PersonalizationStateInfoCollection Class
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.
Provides a collection of SharedPersonalizationStateInfo and UserPersonalizationStateInfo objects.
public ref class PersonalizationStateInfoCollection sealed : System::Collections::ICollection
[System.Serializable]
public sealed class PersonalizationStateInfoCollection : System.Collections.ICollection
[<System.Serializable>]
type PersonalizationStateInfoCollection = class
interface ICollection
interface IEnumerable
Public NotInheritable Class PersonalizationStateInfoCollection
Implements ICollection
- Inheritance
-
PersonalizationStateInfoCollection
- Attributes
- Implements
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.
Personalization |
Initializes a new instance of the PersonalizationStateInfoCollection class. |
Count |
Gets the number of items in a collection. |
Is |
Gets a value indicating whether access to the PersonalizationStateInfoCollection collection is synchronized (thread safe). |
Item[Int32] |
Gets a PersonalizationStateInfo instance located at the specified ordinal index in the collection. |
Item[String, String] |
Gets an element from the collection based on the specified parameters. |
Sync |
Gets an object that can be used to synchronize access to the PersonalizationStateInfoCollection instance. |
Add(Personalization |
Adds a PersonalizationStateInfo-derived instance to the end of the collection. |
Clear() |
Clears the collection of all items. |
Copy |
Copies the elements of the PersonalizationStateInfoCollection collection into a PersonalizationStateInfo array, starting at the specified position. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Returns a standard enumerator capable of iterating over the collection. This method cannot be inherited. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(String, String) |
Removes a PersonalizationStateInfo-derived object from the collection. |
Set |
Marks the collection as read-only. |
To |
Returns a string that represents the current object. (Inherited from Object) |
ICollection. |
Implements the base CopyTo(Array, Int32) method. |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
Of |
Filters the elements of an IEnumerable based on a specified type. |
As |
Enables parallelization of a query. |
As |
Converts an IEnumerable to an IQueryable. |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: