ProfileProvider.GetAllProfiles 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파생 클래스에서 재정의되는 경우 데이터 원본의 모든 프로필에 대한 사용자 프로필 데이터를 검색합니다.
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 결과는 및 pageIndex 매개 변수에 pageSize 의해 제한됩니다. 매개 변수는 pageSize .에 ProfileInfo반환할 최대 개체 수를 ProfileInfoCollection 식별합니다. 매개 변수는 pageIndex 반환할 결과의 페이지를 식별하며 여기서 0은 첫 번째 페이지를 식별합니다.
totalRecords 매개 변수는 out 매개 변수 및 applicationName 매개 변수를 기반으로 authenticationOption 구성된 userInactiveSinceDate비활성 사용자 프로필의 총 수로 설정된 매개 변수입니다. 예를 들어 구성된 applicationName사용자가 13명이고 pageIndex 값이 5 pageSize 인 1인 경우 반환된 6번째에서 10 ProfileInfoCollection 번째까지의 비활성 프로필이 반환됩니다. 매개 변수는 totalRecords 13으로 설정됩니다.