Export (0) Print
Expand All

WebSecurity::HasUserId Property

Gets a value that indicates whether the current user has a user ID.

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

public:
static property bool HasUserId {
	bool get ();
}

Property Value

Type: System::Boolean
true if the user has a user ID; otherwise, false.

This property verifies that the user has a user ID entry in the data store. This property does not verify that the user account is confirmed. The user account could have a user ID, but also be locked out because of too many incorrect password attempts. Or a password reset token might have been sent to the user, but the token has not yet been used.

Use IsConfirmed(String) to verify that the user is confirmed.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2014 Microsoft