Share via


SimpleMembershipProvider.FindUsersByName(String, Int32, Int32, Int32) 方法

定義

傳回名稱符合指定之使用者名稱的所有使用者帳戶。

public override System.Web.Security.MembershipUserCollection FindUsersByName (string usernameToMatch, int pageIndex, int pageSize, out int totalRecords);
override this.FindUsersByName : string * int * int * int -> System.Web.Security.MembershipUserCollection
Public Overrides Function FindUsersByName (usernameToMatch As String, pageIndex As Integer, pageSize As Integer, ByRef totalRecords As Integer) As MembershipUserCollection

參數

usernameToMatch
String

要搜尋的使用者名稱。

pageIndex
Int32

要傳回的結果網頁之以零起始的索引。

pageSize
Int32

要傳回的結果網頁大小。

totalRecords
Int32

傳回這個方法時,其中包含相符使用者的總數。

傳回

集合,包含從 所 pageIndex 指定頁面開始的使用者帳戶頁面 pageSize

適用於