Share via


UserInfo.PreferredName property

Gets the preferred name for the current user.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public ReadOnly Property PreferredName As String
    Get
'Usage
Dim instance As UserInfo
Dim value As String

value = instance.PreferredName
public string PreferredName { get; }

Property value

Type: System.String
String that represents the preferred name for the user

Remarks

The PreferredName property is read-only.

See also

Reference

UserInfo class

UserInfo members

Microsoft.Office.Server.Audience namespace