Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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 bool HasUserId { 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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.