SharedPersonalizationStateInfo Constructor (String^, DateTime, Int32, Int32, Int32)

 

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.

Exception Condition
ArgumentException

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

ArgumentNullException

path is null.

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
Available since 2.0
Return to top
Show: