Export (0) Print
Expand All

SqlPersonalizationProvider.LoadPersonalizationBlobs Method

Note: This method is new in the .NET Framework version 2.0.

Loads personalization data from the underlying data store, based on the specified parameters.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

protected override void LoadPersonalizationBlobs (
	WebPartManager webPartManager,
	string path,
	string userName,
	ref byte[] sharedDataBlob,
	ref byte[] userDataBlob
)
protected void LoadPersonalizationBlobs (
	WebPartManager webPartManager, 
	String path, 
	String userName, 
	/** @ref */ byte[] sharedDataBlob, 
	/** @ref */ byte[] userDataBlob
)
JScript does not support passing value-type arguments by reference.

Parameters

webPartManager

The WebPartManager managing the personalization data.

path

The path for personalization information in the Shared scope to be used as the retrieval key.

userName

The user name for personalization information in the User scope to be used as the retrieval key.

sharedDataBlob

The returned data for the Shared scope.

userDataBlob

The returned data for the User scope.

This method uses the webPartManager, path, and username parameters as retrieval keys. The returned data contains:

  • The Shared data returned in the sharedDataBlob parameter.

  • Depending on the key values, User data is returned in the userDataBlob parameter. A non-a null reference (Nothing in Visual Basic) value for the userName parameter indicates that User data is also retrieved.

The SqlPersonalizationProvider object automatically updates the LastActivityDate column in the aspnet_Users table each time user-specific personalization data is loaded from 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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft