PersonalizationStateQuery Class

Note: This class is new in the .NET Framework version 2.0.

Represents a set of query parameters that can be passed to a personalization provider using the various get and find methods. This class cannot be inherited.

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

public sealed class PersonalizationStateQuery
/** @attribute SerializableAttribute() */ 
public final class PersonalizationStateQuery
public final class PersonalizationStateQuery

This class is used as a parameter value for various get and find methods of a personalization provider, such as FindState and GetCountOfState. The default indexer allows generic access to the query parameters maintained by this object. The three properties that are explicitly exposed by this class, PathToMatch, UserInactiveSinceDate, and UsernameToMatch, are stored using query key values that are the same as the property names of this class. For more information, see Item.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.


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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions