ProfileProvider.GetAllProfiles 메서드

정의

파생 클래스에서 재정의될 때 데이터 소스에 있는 모든 프로필에 대한 사용자 프로필 데이터를 검색합니다.

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

매개 변수

authenticationOption
ProfileAuthenticationOption

ProfileAuthenticationOption 값 중 하나로, 반환되는 프로필이 익명인지, 인증되었는지 또는 두 형식 모두인지를 지정합니다.

pageIndex
Int32

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

pageSize
Int32

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

totalRecords
Int32

이 메서드가 반환될 때 프로필의 총수가 포함됩니다.

반환

데이터 소스에 있는 모든 프로필에 대한 사용자 프로필 정보가 포함된 ProfileInfoCollection입니다.

예제

다음 코드 예제에서는 구현에 대 한 메서드 시그니처를 GetAllProfiles 메서드. 전체 예제 ProfileProvider 구현을 참조 방법: 프로필 공급자 예제 빌드 및 실행합니다.

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

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

  totalRecords = 0

  Return New ProfileInfoCollection()
End Function

설명

GetAllProfiles 메서드 모든 프로필에 대 한 프로필 정보를 검색 하는 합니다. 에 대 한 데이터만 applicationName 구성에 지정 된 파일이 반환 됩니다. authenticationOption 매개 변수는 익명 프로필 프로필의 경우에 인증 되었는지 여부를 지정 또는 모든 프로필 검색 됩니다.

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

적용 대상

추가 정보