UserPersonalizationStateInfo 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 應用程式中最後一次使用的時間。
例外狀況
size
為負。
備註
此 lastActivityDate
參數表示使用者上次在 ASP.NET 應用程式中使用的時間。 此日期可由其他 ASP.NET 功能更新,例如成員資格和設定檔。
path``username
如果非,則會修剪和 null
。