Accessing User Data (Visual Basic)
This section contains topics dealing with the My.User
object and tasks that you can accomplish with it.
The My.User
object provides access to information about the logged-on user by returning an object that implements the IPrincipal interface.
Tasks
To | See |
---|---|
Get the user's login name | Name |
Get the user's domain name, if the application uses Windows authentication | CurrentPrincipal |
Determine the user's role | IsInRole |
See also
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.