SqlPersonalizationProvider.ResetUserState(String, DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes user personalization data from the underlying data store, based on the specified parameters.
public:
override int ResetUserState(System::String ^ path, DateTime userInactiveSinceDate);
public override int ResetUserState (string path, DateTime userInactiveSinceDate);
override this.ResetUserState : string * DateTime -> int
Public Overrides Function ResetUserState (path As String, userInactiveSinceDate As DateTime) As Integer
Parameters
- path
- String
The path of the personalization data to be deleted. This value can be null
but cannot be an empty string ("").
- userInactiveSinceDate
- DateTime
The date indicating the last activity.
Returns
The count of rows deleted from the underlying data store.
Exceptions
Remarks
This method's parameters have the following restrictions:
The
path
parameter cannot contain wildcard characters.If the
path
parameter is non-null
, then only per-user personalization records associated withpath
will be deleted.Only per-user personalization records associated with users that are considered inactive since the date specified in the
userInactiveSinceDate
parameter will be deleted. The exact comparison would be to delete records where the LastActivityDate property is less than or equal to theuserInactiveSinceDate
parameter.If both parameters are provided, then records that match both constraints are deleted.
The
path
parameter can benull
.The
path
parameter cannot be an empty string after trimming.The UserInactiveSinceDate property cannot be
null
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기