DeleteProfile Method

Deletes a profile instance in the profile system.

Namespace:  Microsoft.CommerceServer.Profiles.WebService
Assembly:  Microsoft.CommerceServer.Profiles.DataManagement (in Microsoft.CommerceServer.Profiles.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Function DeleteProfile ( _
    primaryKeyValue As String, _
    profileType As String _
) As ProfileOperationResponse
'Usage
Dim instance As ProfilesWebService
Dim primaryKeyValue As String
Dim profileType As String
Dim returnValue As ProfileOperationResponse

returnValue = instance.DeleteProfile(primaryKeyValue, _
    profileType)
[WebMethodAttribute]
public virtual ProfileOperationResponse DeleteProfile(
    string primaryKeyValue,
    string profileType
)
[WebMethodAttribute]
public:
virtual ProfileOperationResponse^ DeleteProfile(
    String^ primaryKeyValue, 
    String^ profileType
)
public function DeleteProfile(
    primaryKeyValue : String, 
    profileType : String
) : ProfileOperationResponse

Parameters

  • primaryKeyValue
    Type: System..::.String
    The value of the primary key property of the profile instance to delete.
  • profileType
    Type: System..::.String
    The type of profile to delete (i.e. UserObject, Address).

Return Value

Type: Microsoft.CommerceServer.Profiles..::.ProfileOperationResponse
A ProfileOperationResponse object describing the profile that was deleted.

Remarks

Deletes a profile instance from the server.

Permissions

See Also

Reference

ProfilesWebService Class

ProfilesWebService Members

Microsoft.CommerceServer.Profiles.WebService Namespace