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.
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
- requestContext
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- 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
- 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.