[This is preliminary documentation and is subject to change.]

Checks if the current login user is an administrator or is same as the user given as argument.

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static bool IsAdminOrCreator(
	int userId
)
Visual Basic (Declaration)
Public Shared Function IsAdminOrCreator ( _
	userId As Integer _
) As Boolean
Visual C++
public:
static bool IsAdminOrCreator(
	int userId
)

Parameters

userId
Type: System..::.Int32
The user id of the user to be tested.

Return Value

true if the current login user is an administrator or is same as the user in the argument, false otherwise.

See Also