You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Community Namespace > Classes > Friends Class > Friends Methods > IsFriend
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Friends.IsFriend Method

Checks to see if a user is the colleague of another user by providing both colleague's ID information. In the friendUserID, enter the colleague's ID who you want to check. In the userID, enter the user you are checking against. Returns True when the users are colleagues. For example, if you want to find out whether Jim is a colleague of Tom, enter Jim's user ID in the friendUserId parameter and Tom's user ID in the userId parameter. If Jim and Tom are colleagues, this method returns true.

C#
public Boolean IsFriend(Long friendUserId, Long userId);
Visual Basic
Public Function IsFriend(ByVal friendUserId As Long, ByVal userId As Long) As Boolean
Parameters 
Description 
friendUserId 
first userId 
userId 
second userId 

Returns true if FriendUserId and UserID are colleagues, else false.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!