PeopleManager.IsFollowing method

Checks whether the first user is following the second user.

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

Syntax

'Declaration
Public Shared Function IsFollowing ( _
    possibleFollowerAccountName As String, _
    possibleFolloweeAccountName As String _
) As Boolean
'Usage
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
)

Parameters

  • possibleFollowerAccountName
    Type: System.String

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

  • possibleFolloweeAccountName
    Type: System.String

    The account name of the user who might be followed.

Return value

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

Exceptions

Exception Condition
UserNotFoundException
ArgumentNullException

See also

Reference

PeopleManager class

PeopleManager members

Microsoft.Office.Server.UserProfiles namespace