OpenAuth.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 Shared Function DeleteAccount ( _
    membershipUserName As String, _
    providerName As String, _
    providerUserId As String _
) As Boolean
'Usage
Dim membershipUserName As String 
Dim providerName As String 
Dim providerUserId As String 
Dim returnValue As Boolean 

returnValue = OpenAuth.DeleteAccount(membershipUserName, _
    providerName, providerUserId)
public static bool DeleteAccount(
    string membershipUserName,
    string providerName,
    string providerUserId
)
public:
static bool DeleteAccount(
    String^ membershipUserName, 
    String^ providerName, 
    String^ providerUserId
)
static member DeleteAccount : 
        membershipUserName:string * 
        providerName:string * 
        providerUserId:string -> bool
public static 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.

See Also

Reference

OpenAuth Class

Microsoft.AspNet.Membership.OpenAuth Namespace