Share via


UserPersonalizationStateInfo 建構函式

定義

初始化 UserPersonalizationStateInfo 類別的新執行個體。

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

要套用資訊的目標網頁。 path 是相對於應用程式 (使用波狀符號 (~) 符號語法) 的虛擬路徑。

lastUpdatedDate
DateTime

頁面使用者資訊上次更新的日期和時間。

size
Int32

頁面個別使用者狀態資訊的大小 (以位元組為單位)。

username
String

套用頁面個人化資訊的使用者。

lastActivityDate
DateTime

使用者在 ASP.NET 應用程式中最後一次使用的時間。

例外狀況

path 在修剪後為空白字串 ("")。

-或- username 在修剪後為空白字串 ("")。

pathnull

-或- usernamenull

備註

lastActivityDate 參數表示使用者上次在 ASP.NET 應用程式中使用的時間。 此日期可由其他 ASP.NET 功能更新,例如成員資格和設定檔。

path``username如果非,則會修剪和 null

適用於