ProfileProvider.DeleteInactiveProfiles 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파생 클래스에서 재정의된 경우 지정된 날짜 이전에 마지막 활동 날짜가 발생한 프로필에 대한 모든 사용자 프로필 데이터를 삭제합니다.
public:
abstract int DeleteInactiveProfiles(System::Web::Profile::ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
public abstract int DeleteInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate);
abstract member DeleteInactiveProfiles : System.Web.Profile.ProfileAuthenticationOption * DateTime -> int
Public MustOverride Function DeleteInactiveProfiles (authenticationOption As ProfileAuthenticationOption, userInactiveSinceDate As DateTime) As Integer
매개 변수
- authenticationOption
- ProfileAuthenticationOption
ProfileAuthenticationOption 익명, 인증된 프로필 또는 두 가지 유형의 프로필이 모두 삭제되는지 여부를 지정하는 값 중 하나입니다.
- userInactiveSinceDate
- DateTime
DateTime 비활성으로 간주되는 사용자 프로필을 식별하는 A입니다. 사용자 프로필의 값이 LastActivityDate 이 날짜 및 시간 또는 그 이전에 발생하는 경우 프로필은 비활성 상태로 간주됩니다.
반품
데이터 원본에서 삭제된 프로필 수입니다.
예제
다음 코드 예제에서는 메서드의 구현에 대 한 메서드 시그니처를 보여 있습니다 DeleteInactiveProfiles . 전체 ProfileProvider 구현의 예제는 방법: 프로필 공급자 예제 빌드 및 실행을 참조하세요.
public override int DeleteInactiveProfiles(
ProfileAuthenticationOption authenticationOption,
DateTime userInactiveSinceDate)
{
return 0;
}
Public Overrides Function DeleteInactiveProfiles( _
ByVal authenticationOption As ProfileAuthenticationOption, _
ByVal userInactiveSinceDate As DateTime) As Integer
Return 0
End Function
설명
이 DeleteInactiveProfiles 메서드는 데이터 원본에서 사용되지 않는 프로필 데이터를 제거하는 데 사용됩니다. 구성 파일에 지정된 데이터 applicationName 만 제거됩니다. 매개 변수는 authenticationOption 익명 프로필만, 인증된 프로필만 검색할지 또는 모든 프로필을 검색할지를 지정합니다. 지정된 LastActivityDate 매개 변수 값이 userInactiveSinceDate 삭제되기 전 또는 그 이전에 발생하는 프로필입니다.