PeopleManager.SetMyProfilePicture 方法

Uploads and sets the user profile picture.

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
Public Sub SetMyProfilePicture ( _
    picture As Stream _
)
用法
Dim instance As PeopleManager
Dim picture As Stream

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

参数

备注

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.

另请参阅

引用

PeopleManager 类

PeopleManager 成员

Microsoft.Office.Server.UserProfiles 命名空间