ResetUserState
This method deletes user personalization data from the underlying Oracle data source, based on the specified parameters.
Declaration
// C# public override int ResetUserState(string path, DateTime userInactiveSinceDate);
Parameters
-
pathThe path of the personalization data to be deleted. This value can be a null reference but cannot be an empty string ("").
-
userInactiveSinceDateThe date that indicates the last activity.
Return Value
The count of rows deleted from the underlying Oracle data source.
Exceptions
ArgumentException - The path parameter is an empty string.
OracleException - An Oracle-related error has occurred.
Remarks
The parameters of this method have the following restrictions:
-
The
pathparameter cannot contain wildcard characters. -
If the
pathparameter is a non-null reference, then only per-user personalization records associated with thepathparameter are deleted. -
Only per-user personalization records associated with users that are considered inactive since the date specified in the
userInactiveSinceDateparameter are deleted. The exact comparison deletes records where theLast Activity Dateproperty is less than or equal to theuserInactiveSinceDateparameter. -
If both parameters are provided, then records that match both constraints are deleted.
-
The
pathparameter can be a null reference. -
The
pathparameter cannot be an empty string after trimming. -
The
userInactiveSinceDateparameter cannot be a null reference.