UserPersonalizationStateInfo.UserPersonalizationStateInfo Constructor

Initializes a new instance of the UserPersonalizationStateInfo class.

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

public:
UserPersonalizationStateInfo (
	String^ path, 
	DateTime lastUpdatedDate, 
	int size, 
	String^ username, 
	DateTime lastActivityDate
)
public UserPersonalizationStateInfo (
	String path, 
	DateTime lastUpdatedDate, 
	int size, 
	String username, 
	DateTime lastActivityDate
)
public function UserPersonalizationStateInfo (
	path : String, 
	lastUpdatedDate : DateTime, 
	size : int, 
	username : String, 
	lastActivityDate : DateTime
)
Not applicable.

Parameters

path

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

lastUpdatedDate

The last date and time that the user information for a page was updated.

size

The size, in bytes, of the per-user state information for the page.

username

The user to whom the personalization information for the page applies.

lastActivityDate

The last time the user was active in the ASP.NET application.

Exception typeCondition

ArgumentException

path, after trimming, is an empty string ("").

- or -

username, after trimming, is an empty string ("").

ArgumentNullException

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

- or -

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

ArgumentOutOfRangeException

size is negative.

The lastActivityDate parameter indicates the last time the user was active in the ASP.NET application. This date can be updated by other ASP.NET features, such as Membership and Profile.

path and username are trimmed if non-a null reference (Nothing in Visual Basic).

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

ADD
Show: