Dil

ProfileProvider.GetAllInactiveProfiles Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, son etkinlik tarihinin belirtilen tarihte veya öncesinde gerçekleştiği profiller için veri kaynağından kullanıcı profili verilerini alır.

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

Parametreler

authenticationOption
ProfileAuthenticationOption

ProfileAuthenticationOption Anonim, kimliği doğrulanmış veya her iki profil türünün de döndürüleceğini belirten değerlerden biri.

userInactiveSinceDate
DateTime

DateTime Hangi kullanıcı profillerinin etkin olmadığını belirten bir. Bir kullanıcı profilinin LastActivityDate değeri bu tarih ve saatte veya öncesinde gerçekleşirse, profil etkin değil olarak kabul edilir.

pageIndex
Int32

Döndürülecek sonuç sayfasının dizini.

pageSize
Int32

Döndürülecek sonuç sayfasının boyutu.

totalRecords
Int32

Bu yöntem döndürdüğünde, toplam profil sayısını içerir.

Döndürülenler

ProfileInfoCollection Etkin olmayan profiller hakkında kullanıcı profili bilgilerini içeren bir.

Örnekler

Aşağıdaki kod örneği, yönteminin bir uygulaması için yöntem imzasını GetAllInactiveProfiles gösterir. Tam ProfileProvider uygulama örneği için bkz . Nasıl yapılır: Profil Sağlayıcısı Örneği Oluşturma ve Çalıştırma.

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

Açıklamalar

GetAllInactiveProfiles yöntemi, kullanılmayan kullanıcı profillerinin profil bilgilerini almak için kullanılır. Yalnızca yapılandırma dosyasında belirtilen veriler applicationName döndürülür. authenticationOption parametresi yalnızca anonim profillerin mi, yalnızca kimliği doğrulanmış profillerin mi yoksa tüm profillerin mi arandığını belirtir. Arama yapılan profiller içinde, belirtilen LastActivityDate parametre değeri döndürülmeden önce veya bu değerden önce oluşan herhangi bir userInactiveSinceDate profil döndürülür.

tarafından GetAllInactiveProfiles döndürülen sonuçlar ve pageIndex parametreleriyle pageSize kısıtlanır. parametresi içinde pageSize döndürülecek ProfileInfoen fazla nesne sayısını ProfileInfoCollection tanımlar. pageIndex parametresi, döndürülecek sonuç sayfasını ve sıfırın ilk sayfayı tanımladığı sayfayı tanımlar. totalRecords parametresi, ve out parametrelerine göre applicationName yapılandırılan authenticationOptioniçin etkin olmayan kullanıcı profillerinin toplam sayısına ayarlanmış bir userInactiveSinceDate parametredir. Örneğin, yapılandırılan applicationNameiçin 13 kullanıcı varsa ve pageIndex değer 1 pageSize ve 5 ise, ProfileInfoCollection döndürülen altıncı ile döndürülen onuncu etkin olmayan profiller arasında yer alır. totalRecords parametresi 13 olarak ayarlanır.

Şunlara uygulanır

Ayrıca bkz.