Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the avatar for the given profile.
Namespace: Microsoft.VisualStudio.Services.Profile
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function GetAvatar ( _
requestContext As TeamFoundationRequestContext, _
id As Guid, _
size As AvatarSize _
) As Avatar
Avatar GetAvatar(
TeamFoundationRequestContext requestContext,
Guid id,
AvatarSize size
)
Avatar^ GetAvatar(
TeamFoundationRequestContext^ requestContext,
Guid id,
AvatarSize size
)
abstract GetAvatar :
requestContext:TeamFoundationRequestContext *
id:Guid *
size:AvatarSize -> Avatar
function GetAvatar(
requestContext : TeamFoundationRequestContext,
id : Guid,
size : AvatarSize
) : Avatar
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
id
Type: System.GuidThe Guid of the Identity with which the Profile is associated. There exists a 1 to 1 mapping between an Identity and a Profile
size
Type: Microsoft.VisualStudio.Services.Profile.AvatarSizeParameter to specify the desired size for the avatar.
Return Value
Type: Microsoft.VisualStudio.Services.Profile.Avatar
Remarks
If no avatar was strored then a generated avatar is returned. The randomly generated avatar has 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 iii. Size: 44 x 44 pixels iv. Format: jpeg
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.