FindInactiveProfilesByUserName
This method retrieves inactive profile information for the specified user name.
Declaration
// C# public override ProfileInfoCollection FindInactiveProfilesByUserName (ProfileAuthenticationOption profileAuthenticationOption, string userName, DateTime inactiveSinceDateTime,int pageIndex, int pageSize, out int totalRecords);
Parameters
- 
                        profileAuthenticationOptionAnonymous,Authenticated, orAllprofiles to be searched to find inactive profiles.
- 
                        userNameThe user name to match. 
- 
                        inactiveSinceDateTimeThe cut-off date and time that indicate a profile is inactive. 
- 
                        pageIndexThe zero-based index of the results page. 
- 
                        pageSizeThe size of the page of the results page. 
- 
                        totalRecordsThe total number of profiles. 
Return Value
A ProfileInfoCollection object that contains inactive user profiles where the user name matches the supplied user name.
                  
Exceptions
ArgumentException - One of the following conditions exists:
                  
- 
                        The userNameparameter is an empty string or exceeds 256 characters.
- 
                        The pageSizeparameter is less than 1.
- 
                        The pageIndexparameter is less than 0 orpageIndexmultiplied bypageSizeis larger than theInt32.MaxValue.
ArgumentNullException - The userName parameter is a null reference.
                  
Remarks
This method retrieves inactive profiles from the data source for the application specified by the applicationName attribute in the configuration file. The profileAuthenticationOption parameter specifies whether to search only anonymous profiles, only authenticated profiles, or all profiles. The OracleProfileProvider object searches for a match of the supplied userName parameter using the LIKE keyword and supports wildcard characters using the percent sign (%). This method retrieves profiles with a last activity date and time on or before the specified inactiveSinceDateTime parameter value.
                  
The results returned by this method are constrained by the pageIndex and pageSize parameters. The pageSize parameter identifies the number of ProfileInfo objects to return in the ProfileInfoCollection object. The pageIndex parameter identifies which page of results to return. The totalRecords parameter is an out parameter for the total number of inactive user profiles that match the userName and inactiveSinceDateTime parameters.