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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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