SqlPersonalizationProvider.SavePersonalizationBlob Method
Assembly: System.Web (in system.web.dll)
protected: virtual void SavePersonalizationBlob ( WebPartManager^ webPartManager, String^ path, String^ userName, array<unsigned char>^ dataBlob ) override
protected void SavePersonalizationBlob ( WebPartManager webPartManager, String path, String userName, byte[] dataBlob )
protected override function SavePersonalizationBlob ( webPartManager : WebPartManager, path : String, userName : String, dataBlob : byte[] )
Not applicable.
Parameters
- webPartManager
The WebPartManager managing the personalization data.
- path
A PersonalizationScope indicating the personalization information to be saved. This value cannot be a null reference (Nothing in Visual Basic).
- userName
The user name for personalization information in the User scope to be used as the key.
- dataBlob
The byte array of data to be saved.
If a non-a null reference (Nothing in Visual Basic) user name is provided, then the dataBlob parameter contains personalization data for User scope; otherwise, dataBlob is assumed to contain data for Shared scope.
The SqlPersonalizationProvider object automatically updates the LastActivityDate column in the aspnet_Users table each time user-specific personalization data is saved to the database in the context of a page request. This behavior allows other ASP.NET features to use the LastActivityDate property when managing stale data records as well as determining recent user activity on a site.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.