PeopleManager.AmIFollowedBy method

Checks whether the specified user is following the current user.

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

Syntax

'Declaration
Public Function AmIFollowedBy ( _
    accountName As String _
) As Boolean
'Usage
Dim instance As PeopleManager
Dim accountName As String
Dim returnValue As Boolean

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

Parameters

  • accountName
    Type: System.String

    The account name of the target user.

Return value

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

Exceptions

Exception Condition
UserNotFoundException
ArgumentNullException

See also

Reference

PeopleManager class

PeopleManager members

Microsoft.Office.Server.UserProfiles namespace