PeopleManager.AmIFollowedBy 方法

Checks whether the specified user is following the current user.

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

语法

声明
Public Function AmIFollowedBy ( _
    accountName As String _
) As Boolean
用法
Dim instance As PeopleManager
Dim accountName As String
Dim returnValue As Boolean

returnValue = instance.AmIFollowedBy(accountName)
public bool AmIFollowedBy(
    string accountName
)

参数

  • accountName
    类型:System.String

    The account name of the target user.

返回值

类型:System.Boolean
true if the specified user is following the current user; otherwise, false.

异常

异常 条件
UserNotFoundException
ArgumentNullException

另请参阅

引用

PeopleManager 类

PeopleManager 成员

Microsoft.Office.Server.UserProfiles 命名空间