Export (0) Print
Expand All

SimpleMembershipProvider.GetCreateDate Method

Returns the date and time when the specified user account was created.

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

public override DateTime GetCreateDate(
	string userName
)

Parameters

userName
Type: System.String
The user name of the account.

Return Value

Type: System.DateTime
The date and time on which the user account was created, or DateTime.MinValue if the user account creation date is not available.

ExceptionCondition
InvalidOperationException

The user specified by userName does not have a user account.

NoteNote

If the SimpleMembershipProvider class has been initialized using a call to the WebSecurity.InitializeDatabaseConnection() method, this method is not supported and will throw a NotSupportedException exception. However, if the WebSecurity.InitializeDatabaseConnection() method has not been called, and if you have configured your site to use the standard ASP.NET membership provider, this method is passed through to the standard membership provider. For more information, see the SimpleMembershipProvider class overview.

Show:
© 2014 Microsoft