e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="UserPersonalizationStateInfo.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.UI.WebControls.WebParts {
|
|
|
|
using System;
|
|
using System.Web.Util;
|
|
|
|
[Serializable]
|
|
public sealed class UserPersonalizationStateInfo : PersonalizationStateInfo {
|
|
|
|
private string _username;
|
|
private DateTime _lastActivityDate;
|
|
|
|
public UserPersonalizationStateInfo(string path,
|
|
DateTime lastUpdatedDate,
|
|
int size,
|
|
string username,
|
|
DateTime lastActivityDate) :
|
|
base(path, lastUpdatedDate, size) {
|
|
_username = StringUtil.CheckAndTrimString(username, "username");
|
|
_lastActivityDate = lastActivityDate.ToUniversalTime();
|
|
}
|
|
|
|
public string Username {
|
|
get {
|
|
return _username;
|
|
}
|
|
}
|
|
|
|
public DateTime LastActivityDate {
|
|
get {
|
|
return _lastActivityDate.ToLocalTime();
|
|
}
|
|
}
|
|
}
|
|
}
|