This documentation is archived and is not being maintained.

AvatarUtils Class

Visual Studio 2013

System::Object
  Microsoft.TeamFoundation.Framework.Server::AvatarUtils

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public ref class AvatarUtils abstract sealed

The AvatarUtils type exposes the following members.

  NameDescription
Public methodStatic memberGenerateAvatarGenerates a random avatar with the following specs: i. Background: Solid color (chosen via Round Robin from a predefined color palette) ii. Foreground: First two initials of the display name in white
Public methodStatic memberGetRandomDefaultAvatarColor
Public methodStatic memberMapToColor
Public methodStatic memberToInitialsExtracts the initials (first two) of a string. If no characters present in the string then an empty string is returned.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: