OpenAuthManager.DeleteAccount Method
.NET Framework 4.5
Deletes the association of the specified external 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 Overridable Function DeleteAccount ( _
membershipUserName As String, _
providerName As String, _
providerUserId As String _
) As Boolean
'Usage
Dim instance As OpenAuthManager
Dim membershipUserName As String
Dim providerName As String
Dim providerUserId As String
Dim returnValue As Boolean
returnValue = instance.DeleteAccount(membershipUserName, _
providerName, providerUserId)
public virtual bool DeleteAccount(
string membershipUserName,
string providerName,
string providerUserId
)
public:
virtual bool DeleteAccount(
String^ membershipUserName,
String^ providerName,
String^ providerUserId
)
abstract DeleteAccount :
membershipUserName:string *
providerName:string *
providerUserId:string -> bool
override DeleteAccount :
membershipUserName:string *
providerName:string *
providerUserId:string -> bool
public function DeleteAccount(
membershipUserName : String,
providerName : String,
providerUserId : String
) : boolean
Parameters
- membershipUserName
Type: System.String
The user name of the local membership user.
- providerName
Type: System.String
The authentication provider name.
- providerUserId
Type: System.String
The user ID of the user with the authentication provider.
Return Value
Type: System.Boolean
True if the association was deleted successfully, false if it wasn't found.