PersonalizationProvider.SavePersonalizationBlob(WebPartManager, String, String, Byte[]) 方法

定义

在派生类中重写时,将原始个性化设置数据保存到基础数据存储区中。When overridden in a derived class, saves raw personalization data to the underlying data store.

protected:
 abstract void SavePersonalizationBlob(System::Web::UI::WebControls::WebParts::WebPartManager ^ webPartManager, System::String ^ path, System::String ^ userName, cli::array <System::Byte> ^ dataBlob);
protected abstract void SavePersonalizationBlob (System.Web.UI.WebControls.WebParts.WebPartManager webPartManager, string path, string userName, byte[] dataBlob);
abstract member SavePersonalizationBlob : System.Web.UI.WebControls.WebParts.WebPartManager * string * string * byte[] -> unit
Protected MustOverride Sub SavePersonalizationBlob (webPartManager As WebPartManager, path As String, userName As String, dataBlob As Byte())

参数

webPartManager
WebPartManager

管理个性化设置数据的 WebPartManagerThe WebPartManager managing the personalization data.

path
String

要用作数据存储区关键字的个性化设置信息的路径。The path for personalization information to be used as the data store key.

userName
String

要用作关键字的个性化设置信息的用户名。The user name for personalization information to be used as the key.

dataBlob
Byte[]

要保存的数据的字节数组。The byte array of data to be saved.

注解

此方法是用于将原始个性化设置数据保存到基础数据存储区的方法的抽象定义。This method is the abstract definition of the method used for saving raw personalization data to the underlying data store.

派生实现应使用 webPartManagerpathuserName 参数作为存储密钥。Derived implementations should use the webPartManager, path, and userName parameters as storage keys. 派生的个性化设置提供程序必须能够以每页的方式区分个性化数据。The derived personalization provider must be able to distinguish personalization data on a per-page basis. 此外,对于给定页面的状态,提供程序必须能够区分 SharedUser 作用域。Furthermore, for a given page's state, the provider must be able to distinguish between Shared and User scope. 如果提供了非 null 用户名,则 dataBlob 参数在 User 范围内; 否则,该参数将被 dataBlob 视为在 Shared 范围内。If a non-null user name is provided, then the dataBlob parameter is in User scope; otherwise, the dataBlob parameter is assumed to be in Shared scope.

适用于