ProfileService.DeleteProfileByKey

Ee825328.c++_on(en-US,CS.10).gifEe825328.vb_off(en-US,CS.10).gif

Use this method to delete the ProfileObject object specified by a key member name/value pair and schema type. All properties associated with the profile are purged from the system.

Definition

Sub DeleteProfileByKey(strKeyMemberName As String,sValueAs Variant,strType As String)

Parameters

strKeyMemberName

[in] A String that contains the key member name.

sValue

[in] A Variant that contains the key value.

strType

[in] A String that contains the profile schema type.

Return Values

None.

Error Values

The Errors property stores the collection of errors encountered in the last Profiles resource operation. For more information, see ProfileService.Errors.

Remarks

Use the DeleteProfile method to delete a profile by specifying a primary key value and schema type.

Call the Initialize method before you use this ProfileService method.

Ee825328.caution(en-US,CS.10).gif Caution

  • Care must be taken when deleting ProfileObject objects due to possible expression dependencies. See the ExpressionStore and ExpressionEval objects for details on expressions.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' oProfileService is a Commerce ProfileService object

oProfileService.DeleteProfileByKey("user_id",_
 "{74A38551-D6D8-FFD0-12BF-0A20C90DC8D1}" "UserObject")

See Also

ProfileService Object

ProfileService.CreateProfile

ProfileService.DeleteProfile

ExpressionEval Object

ExpressionStore Object


All rights reserved.