OpenAuthMembershipDatabase.DeleteAccount Method
.NET Framework 4
Deletes the association record of the OAuth/OpenID account for the specified membership user.
Namespace: Microsoft.AspNet.Membership.OpenAuth
Assembly: Microsoft.AspNet.Membership.OpenAuth (in Microsoft.AspNet.Membership.OpenAuth.dll)
Syntax
'Declaration
Public MustOverride Function DeleteAccount ( _
membershipUserName As String, _
providerName As String, _
providerUserId As String _
) As Boolean
'Usage
Dim instance As OpenAuthMembershipDatabase
Dim membershipUserName As String
Dim providerName As String
Dim providerUserId As String
Dim returnValue As Boolean
returnValue = instance.DeleteAccount(membershipUserName, _
providerName, providerUserId)
public abstract bool DeleteAccount(
string membershipUserName,
string providerName,
string providerUserId
)
public:
virtual bool DeleteAccount(
String^ membershipUserName,
String^ providerName,
String^ providerUserId
) abstract
abstract DeleteAccount :
membershipUserName:string *
providerName:string *
providerUserId:string -> bool
public abstract function DeleteAccount(
membershipUserName : String,
providerName : String,
providerUserId : String
) : boolean
Parameters
- membershipUserName
Type: System.String
- providerName
Type: System.String
- providerUserId
Type: System.String
Return Value
Type: System.Boolean
Remarks
The implementation of this method should protect against a user deleting their last way to log in, including during simultaneous requests.