Share via


DeleteUser Method

Removes a user's membership information from the membership store.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function DeleteUser ( _
    username As String, _
    deleteAllRelatedData As Boolean _
) As Boolean
'Usage
Dim instance As UpmMembershipProvider
Dim username As String
Dim deleteAllRelatedData As Boolean
Dim returnValue As Boolean

returnValue = instance.DeleteUser(username, _
    deleteAllRelatedData)
public override bool DeleteUser(
    string username,
    bool deleteAllRelatedData
)
public:
virtual bool DeleteUser(
    String^ username, 
    bool deleteAllRelatedData
) override
public override function DeleteUser(
    username : String, 
    deleteAllRelatedData : boolean
) : boolean

Parameters

  • deleteAllRelatedData
    Type: System..::.Boolean
    true to delete data related to the user from the database; otherwise, false.

Return Value

Type: System..::.Boolean
true if the user was successfully deleted; otherwise false.

Remarks

Deletes the identified user from the data source.

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

Microsoft.CommerceServer.Runtime.Profiles Namespace