SharedPersonalizationStateInfo.SharedPersonalizationStateInfo Constructor

Initializes a new instance of the SharedPersonalizationStateInfo class.

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

public SharedPersonalizationStateInfo (
	string path,
	DateTime lastUpdatedDate,
	int size,
	int sizeOfPersonalizations,
	int countOfPersonalizations
public SharedPersonalizationStateInfo (
	String path, 
	DateTime lastUpdatedDate, 
	int size, 
	int sizeOfPersonalizations, 
	int countOfPersonalizations
public function SharedPersonalizationStateInfo (
	path : String, 
	lastUpdatedDate : DateTime, 
	size : int, 
	sizeOfPersonalizations : int, 
	countOfPersonalizations : int
Not applicable.



The page that the information applies to. path is an application-relative (using tilde syntax) virtual path.


A DateTime indicating when the shared information for the page was last updated.


The size, in bytes, of the shared state information for the page.


The total size, in bytes, of all per-user personalization information that exists for the page.


The total number of users who have personalized the page.

Exception typeCondition


path, when trimmed, is an empty string ("").


path is a null reference (Nothing in Visual Basic).


size, sizeOfPersonalizations or countOfPersonalizations is negative.

The countOfPersonalizations parameter represents the total number of users who have personalized a page. For example, if 100 users personalize a page, then the value of countOfPersonalizations for that page would be 100, not 100 multiplied by the number of personalized properties. Note that this count might or might not match the total number of rows used in the underlying data store to persist per-user information, because some data storage providers use multiple rows to store per-user personalization information for a single user and page combination.

Note that path is trimmed if non-null.

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions