Example Code for Profile Objects

This section provides detailed examples of how to use the profile definitions exposed by the Profiles resource. These samples are written in Microsoft Visual Basic, Visual Basic Scripting Edition (VBScript), or Active Server Pages (ASP), and do not show error checking or certain other formalities required for functional code.

Examples

Example Description
Code to Connect to the Profiles Store Describes how to connect to the Profiles store.
Code to Enumerate Errors Describes how to enumerate all errors generated by the last Profiles resource operation.
Code to Set up Bind Credentials to Directory Stores Describes how to bind profiles to specific users.
Code to Create a New Profile Describes how to create a new profile.
Code to Retrieve a Profile Describes how to retrieve a profile.
Code to Modify a Profile Describes how to modify the data stored in a profile.
Code to Delete a Profile Describes how to delete a profile.
Code to Retrieve XML Data and Schema Describes how to retrieve the Extensible Markup Language (XML) representations of profile data and schemas.
Code to Perform Bulk Operations using ADO and SQL Describes how ActiveX Data Object (ADO) and SQL are used to perform bulk operations on profile data.
Code to Delete Unused Profiles Describes how to delete a profile that has not been used for some time.
Code to Decrypt a Persistent Cookie after the Key has changed Describes how to decrypt old cookies when using rolling key encryption.
Code to Use the ProfileService Object or Commerce Server OLEDB Provider to Update Passwords Describes how to use the ProfileService object and the Commerce Server OLEDB Provider to update passwords.
Code to Retrieve and Set Multi-valued Attributes Describes how to use the ProfileService object to retrieve and set multi-valued attributes.
Code to Retrieve Extended Error Information from the Commerce Server OLEDB Provider Describes how to retrieve extended error information from the Commerce Server OLEDB provider connection object in the event of an error.
Code to Retrieve Custom Attributes on Profile Properties Describes how to retrieve custom attributes on profile properties.

Copyright © 2005 Microsoft Corporation.
All rights reserved.