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
- username
Type: System..::.String
The name of the user to delete.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.