Export (0) Print
Expand All

SimpleMembershipProvider.IsConfirmed Method

Returns a value that indicates whether the user account has been confirmed by the provider.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

'Declaration
Public Overrides Function IsConfirmed ( _
	userName As String _
) As Boolean
'Usage
Dim instance As SimpleMembershipProvider 
Dim userName As String 
Dim returnValue As Boolean 

returnValue = instance.IsConfirmed(userName)

Parameters

userName
Type: System.String
The user name.

Return Value

Type: System.Boolean
true if the user account has been confirmed; otherwise, false.

ExceptionCondition
ArgumentException

userName is Nothing or empty.

InvalidOperationException

The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection method.

This method checks whether the user was previously confirmed by a call to the ConfirmAccount(String) method.

Show:
© 2014 Microsoft