Friday, September 21, 2007

IsCurrentUserMemberOfGroup

The IsCurrentUserMemberOfGroup method of the SPWeb class can be used to check if the currently logged in user is a member of a group or not. This method will return a boolean value that will specify whether the current user is a member of the specified group.

The parameter for this method would be the groupId which is a 32 bit integer. If the return value is true then means that the user is a member of the specified group and otherwise false.

SPWeb.IsCurrentUserMemberOfGroup(groupId)

Friday, September 21, 2007

IsCurrentUserMemberOfGroup

The IsCurrentUserMemberOfGroup method of the SPWeb class can be used to check if the currently logged in user is a member of a group or not. This method will return a boolean value that will specify whether the current user is a member of the specified group.

The parameter for this method would be the groupId which is a 32 bit integer. If the return value is true then means that the user is a member of the specified group and otherwise false.

SPWeb.IsCurrentUserMemberOfGroup(groupId)