Editar

Compartilhar via


UserPersonalizationStateInfo Constructor

Definition

Initializes a new instance of the UserPersonalizationStateInfo class.

public:
 UserPersonalizationStateInfo(System::String ^ path, DateTime lastUpdatedDate, int size, System::String ^ username, DateTime lastActivityDate);
public UserPersonalizationStateInfo (string path, DateTime lastUpdatedDate, int size, string username, DateTime lastActivityDate);
new System.Web.UI.WebControls.WebParts.UserPersonalizationStateInfo : string * DateTime * int * string * DateTime -> System.Web.UI.WebControls.WebParts.UserPersonalizationStateInfo
Public Sub New (path As String, lastUpdatedDate As DateTime, size As Integer, username As String, lastActivityDate As DateTime)

Parameters

path
String

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

lastUpdatedDate
DateTime

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

size
Int32

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

username
String

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

lastActivityDate
DateTime

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

Exceptions

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

-or-

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

path is null.

-or-

username is null.

size is negative.

Remarks

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-null.

Applies to