PeopleManager.IsFollowing 方法

Checks whether the first user is following the second user.

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

语法

声明
Public Shared Function IsFollowing ( _
    possibleFollowerAccountName As String, _
    possibleFolloweeAccountName As String _
) As Boolean
用法
Dim possibleFollowerAccountName As String
Dim possibleFolloweeAccountName As String
Dim returnValue As Boolean

returnValue = PeopleManager.IsFollowing(possibleFollowerAccountName, _
    possibleFolloweeAccountName)
public static bool IsFollowing(
    string possibleFollowerAccountName,
    string possibleFolloweeAccountName
)

参数

  • possibleFollowerAccountName
    类型:System.String

    The account name of the user who might be a follower.

  • possibleFolloweeAccountName
    类型:System.String

    The account name of the user who might be followed.

返回值

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

异常

异常 条件
UserNotFoundException
ArgumentNullException

另请参阅

引用

PeopleManager 类

PeopleManager 成员

Microsoft.Office.Server.UserProfiles 命名空间