ProfileProvider.GetAllInactiveProfiles 메서드

정의

파생 클래스에서 재정의된 경우 지정된 날짜 또는 그 이전에 마지막 활동 날짜가 발생한 프로필에 대한 데이터 원본에서 사용자 프로필 데이터를 검색합니다.

public:
 abstract System::Web::Profile::ProfileInfoCollection ^ GetAllInactiveProfiles(System::Web::Profile::ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, [Runtime::InteropServices::Out] int % totalRecords);
public abstract System.Web.Profile.ProfileInfoCollection GetAllInactiveProfiles(System.Web.Profile.ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate, int pageIndex, int pageSize, out int totalRecords);
abstract member GetAllInactiveProfiles : System.Web.Profile.ProfileAuthenticationOption * DateTime * int * int * int -> System.Web.Profile.ProfileInfoCollection
Public MustOverride Function GetAllInactiveProfiles (authenticationOption As ProfileAuthenticationOption, userInactiveSinceDate As DateTime, pageIndex As Integer, pageSize As Integer, ByRef totalRecords As Integer) As ProfileInfoCollection

매개 변수

authenticationOption
ProfileAuthenticationOption

ProfileAuthenticationOption 익명, 인증된 프로필 또는 두 가지 유형의 프로필이 반환되는지 여부를 지정하는 값 중 하나입니다.

userInactiveSinceDate
DateTime

DateTime 비활성으로 간주되는 사용자 프로필을 식별하는 A입니다. 사용자 프로필이 LastActivityDate 이 날짜 및 시간 또는 그 이전에 발생하는 경우 프로필은 비활성 상태로 간주됩니다.

pageIndex
Int32

반환할 결과 페이지의 인덱스입니다.

pageSize
Int32

반환할 결과 페이지의 크기입니다.

totalRecords
Int32

이 메서드가 반환되면 총 프로필 수가 포함됩니다.

반품

ProfileInfoCollection 비활성 프로필에 대한 사용자 프로필 정보가 포함된 정보입니다.

예제

다음 코드 예제에서는 메서드의 구현에 대 한 메서드 시그니처를 보여 있습니다 GetAllInactiveProfiles . 전체 ProfileProvider 구현의 예제는 방법: 프로필 공급자 예제 빌드 및 실행을 참조하세요.

public override ProfileInfoCollection GetAllInactiveProfiles(
    ProfileAuthenticationOption authenticationOption,
    DateTime userInactiveSinceDate,
    int pageIndex,
    int pageSize,
    out int totalRecords)
{
    totalRecords = 0;

    return new ProfileInfoCollection();
}
Public Overrides Function GetAllInactiveProfiles( _
ByVal authenticationOption As ProfileAuthenticationOption, _
ByVal userInactiveSinceDate As DateTime, _
ByVal pageIndex As Integer, _
ByVal pageSize As Integer, _
 ByRef totalRecords As Integer) As ProfileInfoCollection

  totalRecords = 0

  Return New ProfileInfoCollection()
End Function

설명

GetAllInactiveProfiles 메서드는 사용되지 않는 사용자 프로필에 대한 프로필 정보를 검색하는 데 사용됩니다. 구성 파일에 지정된 데이터 applicationName 만 반환됩니다. 매개 변수는 authenticationOption 익명 프로필만, 인증된 프로필만 검색할지 또는 모든 프로필을 검색할지를 지정합니다. 검색된 프로필 중 지정된 LastActivityDate 매개 변수 값이 반환되거나 그 이전에 발생하는 프로필 userInactiveSinceDate 이 반환됩니다.

반환된 GetAllInactiveProfiles 결과는 및 pageIndex 매개 변수에 pageSize 의해 제한됩니다. 매개 변수는 pageSize .에 ProfileInfo반환할 최대 개체 수를 ProfileInfoCollection 식별합니다. 매개 변수는 pageIndex 반환할 결과의 페이지를 식별하며 여기서 0은 첫 번째 페이지를 식별합니다. totalRecords 매개 변수는 out 매개 변수 및 applicationName 매개 변수를 기반으로 authenticationOption 구성된 userInactiveSinceDate비활성 사용자 프로필의 총 수로 설정된 매개 변수입니다. 예를 들어 구성된 applicationName사용자가 13명이고 pageIndex 값이 5 pageSize 인 1인 경우 반환된 6번째에서 10 ProfileInfoCollection 번째까지의 비활성 프로필이 반환됩니다. 매개 변수는 totalRecords 13으로 설정됩니다.

적용 대상

추가 정보