Profiles Programming Workflow
A typical series of events involved in programming with profiles includes:
- Initializing the Profiling System: once you have connected to the profile store, you can initialize the Profiling System using the appropriate profiles definition. For an example, see Code to Connect to the Profiles Store.
- Creating a new profile: you create an empty profile using a profile schema; after this, you can populate the properties of that profile and save it to the profiles store. For an example, see Code to Create a New Profile.
- Retrieving the profile by specifying the primary key value and the schema name, then setting multi-valued attributes on the profile. For an example, see Code to Retrieve a Profile.
- Retrieving profile schema information: you can retrieve a list of all defined profile schema names, then retrieve the schema corresponding to one of those names. For an example, see Code to Retrieve XML Data and Schema.
- Working with the Commerce Server OLEDB Provider to update profile information: you can use this provider to update and save profile data. For an example, see Code to Use the ProfileService Object or Commerce Server OLEDB Provider to Update Passwords.
- Decrypting cookies using an old encryption key: if you have stored obsolete keys, you can decrypt cookies stored with that obsolete key. For an example, see Code to Decrypt a Persistent Cookie after the Key has changed.
- Deleting profiles: care must be taken when deleting profiles due to possible expression dependencies on the deleted profile. For an example, see Code to Delete a Profile.
Copyright © 2005 Microsoft Corporation.
All rights reserved.