SimpleMembershipProvider.GetUserId(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the ID for a user based on the specified user name.
public int GetUserId (string userName);
member this.GetUserId : string -> int
Public Function GetUserId (userName As String) As Integer
Parameters
- userName
- String
The user name.
Returns
The user ID.
Exceptions
The SimpleMembershipProvider class was not initialized using a call to the InitializeDatabaseConnection method.