Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.Framework.Server.AvatarUtils
Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public NotInheritable Class AvatarUtils
public static class AvatarUtils
public ref class AvatarUtils abstract sealed
[<AbstractClass>]
[<Sealed>]
type AvatarUtils =  class end
public final class AvatarUtils
The AvatarUtils type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| .gif) .gif) | GenerateAvatar | Generates 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 | 
| .gif) .gif) | GetRandomDefaultAvatarColor | |
| .gif) .gif) | MapToColor | |
| .gif) .gif) | ToInitials | Extracts the initials (first two) of a string. If no characters present in the string then an empty string is returned. | 
Top
Fields
| Name | Description | |
|---|---|---|
| .gif) .gif) | LargeAvatarPixelSize | |
| .gif) .gif) | MaxAvatarHeightInPixels | |
| .gif) .gif) | MaxAvatarWidthInPixels | |
| .gif) .gif) | MediumAvatarPixelSize | |
| .gif) .gif) | MinAvatarHeightInPixels | |
| .gif) .gif) | MinAvatarWidthInPixels | |
| .gif) .gif) | SmallAvatarPixelSize | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.