C# Class MySql.Web.Profile.MySQLProfileProvider

Inheritance: System.Web.Profile.ProfileProvider
显示文件 Open project: elevate/mysqlconnector-.net Class Usage Examples

Public Methods

Method Description
DeleteInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate ) : int

When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date.

DeleteProfiles ( System.Web.Profile.ProfileInfoCollection profiles ) : int

When overridden in a derived class, deletes profile properties and information for the supplied list of profiles.

DeleteProfiles ( string usernames ) : int

When overridden in a derived class, deletes profile properties and information for profiles that match the supplied list of user names.

FindInactiveProfilesByUserName ( ProfileAuthenticationOption authenticationOption, string usernameToMatch, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection

When overridden in a derived class, retrieves profile information for profiles in which the last activity date occurred on or before the specified date and the user name matches the specified user name.

FindProfilesByUserName ( ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection

When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names.

GetAllInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection

When overridden in a derived class, retrieves user-profile data from the data source for profiles in which the last activity date occurred on or before the specified date.

GetAllProfiles ( ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection

When overridden in a derived class, retrieves user profile data for all profiles in the data source.

GetNumberOfInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate ) : int

When overridden in a derived class, returns the number of profiles in which the last activity date occurred on or before the specified date.

GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection

Returns the collection of settings property values for the specified application instance and settings property group.

Initialize ( string name, NameValueCollection config ) : void

Initializes the provider.

SetPropertyValues ( SettingsContext context, SettingsPropertyValueCollection collection ) : void

Sets the values of the specified group of property settings.

Private Methods

Method Description
DecodeProfileData ( DataRow profileRow, SettingsPropertyValueCollection values ) : void
DeleteUserData ( MySqlConnection connection, int userId ) : void
EncodeProfileData ( SettingsPropertyValueCollection collection, bool isAuthenticated, string &index, string &stringData, byte &binaryData ) : int
GetConfigValue ( string configValue, string defaultValue ) : string
GetProfiles ( ProfileAuthenticationOption authenticationOption, string usernameToMatch, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection

Method Details

DeleteInactiveProfiles() public method

When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date.
public DeleteInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate ) : int
authenticationOption ProfileAuthenticationOption One of the /// /// values, specifying whether anonymous, authenticated, or both /// types of profiles are deleted.
userInactiveSinceDate System.DateTime A /// that identifies which user profiles are considered inactive. If the /// /// value of a user profile occurs on or before this date and time, the /// profile is considered inactive.
return int

DeleteProfiles() public method

When overridden in a derived class, deletes profile properties and information for the supplied list of profiles.
public DeleteProfiles ( System.Web.Profile.ProfileInfoCollection profiles ) : int
profiles System.Web.Profile.ProfileInfoCollection A /// of /// information about profiles that are to be deleted.
return int

DeleteProfiles() public method

When overridden in a derived class, deletes profile properties and information for profiles that match the supplied list of user names.
public DeleteProfiles ( string usernames ) : int
usernames string A string array of user names for /// profiles to be deleted.
return int

FindInactiveProfilesByUserName() public method

When overridden in a derived class, retrieves profile information for profiles in which the last activity date occurred on or before the specified date and the user name matches the specified user name.
public FindInactiveProfilesByUserName ( ProfileAuthenticationOption authenticationOption, string usernameToMatch, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection
authenticationOption ProfileAuthenticationOption One of the /// values, /// specifying whether anonymous, authenticated, or both types of profiles /// are returned.
usernameToMatch string The user name to search for.
userInactiveSinceDate System.DateTime A /// that identifies which user profiles are considered inactive. If the /// value /// of a user profile occurs on or before this date and time, the profile /// is considered inactive.
pageIndex int The index of the page of results to return.
pageSize int The size of the page of results to return.
totalRecords int When this method returns, contains the total /// number of profiles.
return System.Web.Profile.ProfileInfoCollection

FindProfilesByUserName() public method

When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names.
public FindProfilesByUserName ( ProfileAuthenticationOption authenticationOption, string usernameToMatch, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection
authenticationOption ProfileAuthenticationOption One of the /// values, /// specifying whether anonymous, authenticated, or both types of profiles /// are returned.
usernameToMatch string The user name to search for.
pageIndex int The index of the page of results to return.
pageSize int The size of the page of results to return.
totalRecords int When this method returns, contains the total /// number of profiles.
return System.Web.Profile.ProfileInfoCollection

GetAllInactiveProfiles() public method

When overridden in a derived class, retrieves user-profile data from the data source for profiles in which the last activity date occurred on or before the specified date.
public GetAllInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection
authenticationOption ProfileAuthenticationOption One of the /// values, /// specifying whether anonymous, authenticated, or both types of profiles /// are returned.
userInactiveSinceDate System.DateTime A /// that identifies which user profiles are considered inactive. If the /// of /// a user profile occurs on or before this date and time, the profile is /// considered inactive.
pageIndex int The index of the page of results to return.
pageSize int The size of the page of results to return.
totalRecords int When this method returns, contains the /// total number of profiles.
return System.Web.Profile.ProfileInfoCollection

GetAllProfiles() public method

When overridden in a derived class, retrieves user profile data for all profiles in the data source.
public GetAllProfiles ( ProfileAuthenticationOption authenticationOption, int pageIndex, int pageSize, int &totalRecords ) : System.Web.Profile.ProfileInfoCollection
authenticationOption ProfileAuthenticationOption One of the /// values, /// specifying whether anonymous, authenticated, or both types of profiles /// are returned.
pageIndex int The index of the page of results to return.
pageSize int The size of the page of results to return.
totalRecords int When this method returns, contains the /// total number of profiles.
return System.Web.Profile.ProfileInfoCollection

GetNumberOfInactiveProfiles() public method

When overridden in a derived class, returns the number of profiles in which the last activity date occurred on or before the specified date.
public GetNumberOfInactiveProfiles ( ProfileAuthenticationOption authenticationOption, System.DateTime userInactiveSinceDate ) : int
authenticationOption ProfileAuthenticationOption One of the /// values, /// specifying whether anonymous, authenticated, or both types of profiles /// are returned.
userInactiveSinceDate System.DateTime A /// that identifies which user profiles are considered inactive. If the /// of /// a user profile occurs on or before this date and time, the profile /// is considered inactive.
return int

GetPropertyValues() public method

Returns the collection of settings property values for the specified application instance and settings property group.
public GetPropertyValues ( SettingsContext context, SettingsPropertyCollection collection ) : SettingsPropertyValueCollection
context System.Configuration.SettingsContext A describing the current application use.
collection System.Configuration.SettingsPropertyCollection A containing the settings property group whose values are to be retrieved.
return System.Configuration.SettingsPropertyValueCollection

Initialize() public method

Initializes the provider.
The name of the provider is null. The name of the provider has a length of zero. An attempt is made to call on a provider after the provider has already been initialized.
public Initialize ( string name, NameValueCollection config ) : void
name string The friendly name of the provider.
config System.Collections.Specialized.NameValueCollection A collection of the name/value pairs representing the provider-specific attributes specified in the configuration for this provider.
return void

SetPropertyValues() public method

Sets the values of the specified group of property settings.
public SetPropertyValues ( SettingsContext context, SettingsPropertyValueCollection collection ) : void
context System.Configuration.SettingsContext A describing the current application usage.
collection System.Configuration.SettingsPropertyValueCollection A representing the group of property settings to set.
return void