Name Property
Collapse the table of content
Expand the table of content

IIdentity.Name Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the name of the current user.

Namespace:  System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

string Name { get; }

Property Value

Type: System.String
The name of the user on whose behalf the code is running.

The user name is passed to the common language runtime by the operating system or other authentication provider (such as ASP.NET).

Name is typically set to the empty string ("") for an unauthenticated entity, but can take other values.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft