PeopleManager.IsFollowing method

SharePoint 2013

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)

'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)

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.
Show: