PeopleManager.SetMyProfilePicture method

Uploads and sets the user profile picture.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Sub SetMyProfilePicture ( _
    picture As Stream _
)
'Usage
Dim instance As PeopleManager
Dim picture As Stream

instance.SetMyProfilePicture(picture)
public void SetMyProfilePicture(
    Stream picture
)

Parameters

Remarks

Pictures in BMP, JPEG, and PNG formats of up to 5 million bytes are supported. A user can only upload a picture to their own profile.

See also

Reference

PeopleManager class

PeopleManager members

Microsoft.Office.Server.UserProfiles namespace