This documentation is archived and is not being maintained.

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
)

Parameters

path
Type: System::String

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

lastUpdatedDate
Type: System::DateTime

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

size
Type: System::Int32

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

sizeOfPersonalizations
Type: System::Int32

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

countOfPersonalizations
Type: System::Int32

The total number of users who have personalized the page.

ExceptionCondition
ArgumentException

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

ArgumentNullException

path is nullptr.

ArgumentOutOfRangeException

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: