UserPersonalizationStateInfo(String, DateTime, Int32, String, DateTime) 构造函数
定义
初始化 UserPersonalizationStateInfo 类的新实例。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)
参数
- path
- String
信息应用到其中的页。The page that the information applies to. path 是相对于应用程序(使用波形符语法)的虚拟路径。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
用户在 ASP.NET 应用程序中处于活动状态的最后一刻的时间。The last time the user was active in the ASP.NET application.
例外
path 在修整后变成空字符串 ("")。path, after trimming, is an empty string ("").
- 或 --or-
username 在修整后变成空字符串 ("")。username, after trimming, is an empty string ("").
size 为负数。size is negative.
注解
lastActivityDate参数表示用户上次在 ASP.NET 应用程序中处于活动状态的时间。The lastActivityDate parameter indicates the last time the user was active in the ASP.NET application. 此日期可以通过其他 ASP.NET 功能进行更新,例如成员身份和配置文件。This date can be updated by other ASP.NET features, such as Membership and Profile.
path``username如果不是,则会对和进行裁剪 null 。path and username are trimmed if non-null.