Share via


IProfileService.SetAvatar Method

Sets a avatar for the given profile.

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

Syntax

'Declaration
Function SetAvatar ( _
    requestContext As TeamFoundationRequestContext, _
    id As Guid, _
    image As Byte() _
) As Integer
int SetAvatar(
    TeamFoundationRequestContext requestContext,
    Guid id,
    byte[] image
)
int SetAvatar(
    TeamFoundationRequestContext^ requestContext, 
    Guid id, 
    array<unsigned char>^ image
)
abstract SetAvatar : 
        requestContext:TeamFoundationRequestContext * 
        id:Guid * 
        image:byte[] -> int
function SetAvatar(
    requestContext : TeamFoundationRequestContext, 
    id : Guid, 
    image : byte[]
) : int

Parameters

  • id
    Type: System.Guid

    The Guid of the Identity with which the Profile is associated. There exists a 1 to 1 mapping between an Identity and a Profile

  • image
    Type: array<System.Byte[]

    The binary bits of a valid image in byte array form

Return Value

Type: System.Int32
The revision of the updated avatar

.NET Framework Security

See Also

Reference

IProfileService Interface

Microsoft.VisualStudio.Services.Profile Namespace