Profile Routines
include\std_profile_lib.asp
The following profile utility routines are defined in this file:
- EnsureUpToDateUserProfile
This sub retrieves the profile of the user from the cache if it is up-to-date. Otherwise, the profile is retrieved from the Profiles store. - EnsureUserProfile
This function ensures that the profile of the user exists. If not, the user is redirected to the "missing profile" error page (error\profile.asp). - GetCurrentUserProfile
This function gets the profile of the current user, if the user has one. This function also ensures that the profile returned is the latest version available on the Web farm. - GetNewGuestUserProfile
If the privacy options of the Site Configuration dictionary is set to PROFILE_GUEST_USER, this function creates a new user profile, sets the user_id_changed_by field to the newly generated user ID, sets the user_type field to GUEST_PROFILE, the account_status field to ACCOUNT_ACTIVE, the partner_desk_role field to ROLE_USER, and the date_created field to the current time. After the profile is created, the function passes it to the UpdateUserProfile routine to perform common functions the sites require when saving profiles. - GetProfileFromDB
This sub retrieves the specified profile from the Profiles store. - GetProfileService
This function creates and initializes a ProfileService object. - GetUserProfileByLoginName
This function returns the profile for the given login name. - rsGetProfile
This function retrieves the specified profile and returns it in a Recordset object. - rsGetProfileByKey
This function retrieves the profile specified by the passed key name/value pair, and returns it in a Recordset object. - UpdateUserProfile
This sub updates the profile for the current user.
Copyright © 2005 Microsoft Corporation.
All rights reserved.