ProfileService Object

Commerce Server 2000
Ee810726.c++_on(en-US,CS.10).gif Ee810726.vb_off(en-US,CS.10).gif

Use this object to create, delete, and retrieve ProfileObject objects.

ProgID:  Commerce.ProfileService (Externally creatable)
COM Class Name:  ProfileService
Type Library Name:  Microsoft Commerce 2000 Profile Service Type Library
DLL Name:  mscsups.dll
Threading Model:  Both

The properties of the ProfileService object are shown in the following table.

PropertyTypeDescription
ErrorsObjectStores the collection of errors encountered in the last Profiles resource operation.

This property is read-only.


The methods of the ProfileService object are shown in the following table.

MethodDescription
BindAsSets the user credentials for accessing the underlying Profiles store.
CreateProfileCreates the specified ProfileObject object.
DeleteProfileDeletes a ProfileObject object specified by a primary key value from the Profiling System.
DeleteProfileByKeyDeletes a ProfileObject object specified by a key member/value pair from the Profiling System.
GetProfileRetrieves a ProfileObject object specified by a primary key value from the Profiling System.
GetProfileByKeyRetrieves a ProfileObject object specified by a key member/value pair from the Profiling System.
GetProfileDefXMLRetrieves the XML description of the specified profile definition.
InitializeEstablishes connection to the specified Profiles store and populates the schema cache.
UnBindClears the user credentials for accessing the underlying Profiles store.

Remarks

The ProfileService object implements read/write run-time access for ProfileObject objects and read-only access for profile definitions.

The ProfileService object provides run-time access to a profile object, which is a specific instantiation of a profile schema. The Profile Designer module in Commerce Server Business Desk and the Profiles resource in Commerce Server Manager provide design-time access for modifying the profile schema.

In a Web-based application context, the ProfileService object is intended to be created and initialized in the Global.asa file for the application. The ProfileObject objects are intended to be created within page scope.

Call the Initialize method before you use any other ProfileService method or property.

See Also

Profile Objects

Profile Schema

Profile XML Structures

ProfileObject Object


All rights reserved.
Show: