You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,40 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user