Udostępnij za pośrednictwem


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

How to: Determine a User's Login Name (Visual Basic)

Get the user's domain name, if the application uses Windows authentication

How to: Determine the User's Domain (Visual Basic)

Determine the user's role

How to: Determine if a User is in a Group (Visual Basic)

Implement custom authentication

Walkthrough: Implementing Custom Authentication and Authorization (Visual Basic)

See Also

Reference

User

Other Resources

Authentication and Authorization in the .NET Framework with Visual Basic