Share via


ProfileObject Object

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Note

The ProfileObject object is obsolete; instead, use ProfileContext or ProfileManagementContext.

Use this object to retrieve the data in specific profile object instances and modify the property values for that profile object. In addition, use the ProfileObject object to examine and navigate the property attributes of a profile object.

ProgID:

Commerce.ProfileObject (Externally creatable)

COM Class Name:

ProfileObject

Type Library Name:

Microsoft Commerce Server Profile Service Type Library

DLL Name:

mscsups.dll

Threading Model:

Both

COM Interface Name:

IProfileObject2

Interface ID Constant:

IID_IProfileObject2

Header File:

mscsups.h

In C++, use the IProfileObject interface to access the properties and methods of the ProfileObject object.

Because this object is primarily intended for use within ASP script, access from C++ will not be common.

Methods

Method

Description

GetProfileXML

Retrieves an XML fragment representing the data structure of the profile object.

Update

Saves the profile data to the underlying data store.

UpdateProfileXML

Changes the properties of the ProfileObject object.

Properties

Property

Description

Fields

Stores the profile property collection.

This property is read-only.

Remarks

The ProfileObject object supports extended dot notation. For example, using extended dot notation, the following:

oProfileObject.Fields("Address.Zipcode")

is equivalent to:

oProfileObject.Fields("Address").Value("Zipcode")

The first technique retrieves the Zipcode value in a single call to Fields.Value, while the second technique requires two calls to retrieve the same value.

The ProfileObject object also provides smart navigation into profiles. For example, using smart navigation, the following:

oProfileObject.Address.ZipCode

is equivalent to:

oProfileObject.Fields("Address.Zipcode")

In general, the CreateProfile method of the ProfileService object is used to instantiate this object.

See Also

Other Resources

Profiles Schema

ProfileService Object

COM Object Reference