PersonalizationAdministration.ResetAllState(PersonalizationScope) Method

Definition

Resets all personalization data in the underlying data store by deleting all rows associated with the specified scope.

public:
 static int ResetAllState(System::Web::UI::WebControls::WebParts::PersonalizationScope scope);
public static int ResetAllState (System.Web.UI.WebControls.WebParts.PersonalizationScope scope);
static member ResetAllState : System.Web.UI.WebControls.WebParts.PersonalizationScope -> int
Public Shared Function ResetAllState (scope As PersonalizationScope) As Integer

Parameters

scope
PersonalizationScope

The scope associated with the personalization data to be deleted.

Returns

The number of items that were reset.

Exceptions

scope is not a valid member of the PersonalizationScope enumeration.

The provider for a personalization provider defined in configuration is not of the correct type.

A configuration exception occurred while attempting to create and initialize an instance of one of the configured personalization providers.

-or-

The default personalization provider defined in configuration could not be found.

The default provider returned a negative number for the count of affected rows.

Remarks

This method deletes all rows in the underlying data store associated with the specified personalization scope.

Applies to

See also