IProfileService::DeleteProfile

Ee798365.c++_off(en-US,CS.10).gifEe798365.vb_on(en-US,CS.10).gif

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

Definition

HRESULT IProfileService::DeleteProfile(VARIANTsValue,BSTRbstrType);

Parameters

sValue

[in] A VARIANT that contains the primary key value.

bstrType

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

Return Values

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

Error Values

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

Remarks

If the DeleteProfile method is called because of an error in creating a new ProfileObject object, any error message produced should be ignored.

Use the DeleteProfileByKey method to delete a profile specified by a key member/value pair and schema type.

Call the Initialize method before you use this ProfileService method.

Ee798365.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.

See Also

ProfileService Object

IProfileService::CreateProfile

IProfileService::DeleteProfileByKey

ExpressionEval Object

ExpressionStore Object


All rights reserved.