OAuthWebSecurity.DeleteAccount Method
Deletes the specified membership account.
Namespace: Microsoft.Web.WebPages.OAuth
Assembly: Microsoft.Web.WebPages.OAuth (in Microsoft.Web.WebPages.OAuth.dll)
Syntax
'Declaration
Public Shared Function DeleteAccount ( _
providerName As String, _
providerUserId As String _
) As Boolean
'Usage
Dim providerName As String
Dim providerUserId As String
Dim returnValue As Boolean
returnValue = OAuthWebSecurity.DeleteAccount(providerName, _
providerUserId)
public static bool DeleteAccount(
string providerName,
string providerUserId
)
public:
static bool DeleteAccount(
String^ providerName,
String^ providerUserId
)
static member DeleteAccount :
providerName:string *
providerUserId:string -> bool
public static function DeleteAccount(
providerName : String,
providerUserId : String
) : boolean
Parameters
- providerName
Type: System.String
The provider name.
- providerUserId
Type: System.String
The user ID for the specified provider.
Return Value
Type: System.Boolean
true if the account was deleted, or false if it was not.