Performs an access check of the calling user's permissions on another user.
Namespace: Microsoft.Clm.Provision
Assembly: Microsoft.Clm.Provision (in microsoft.clm.provision.dll)

Usage

Visual Basic
Dim userUuid As Guid
Dim userPermission As UserPermission
Dim returnValue As Boolean

returnValue = PermissionOperations.AccessCheck(userUuid, userPermission)

Syntax

Visual Basic
Public Shared Function AccessCheck ( _
		userUuid As Guid, _
		userPermission As UserPermission _
) As Boolean
C#
public static bool AccessCheck (
		Guid userUuid,
		UserPermission userPermission
)
C++
public:
static bool AccessCheck (
		Guid userUuid, 
		UserPermission userPermission
)
J#
public static boolean AccessCheck (
		Guid userUuid, 
		UserPermission userPermission
)
JScript
public static function AccessCheck (
		userUuid : Guid, 
		userPermission : UserPermission
) : boolean

Parameters

userUuid

A Guid object that identifies the user on which the calling user's permissions are validated.

userPermission

A UserPermission value that specifies the specific permissions to validate.

Return Value

true if the calling user has the specified permissions on the specified user; otherwise, false.

Remarks

The calling user's identity is used as the identity for which to validate the permissions.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 2008 x64 Edition

Target Platforms

Windows XP SP3, Windows Vista SP1+, Windows 7, Windows Server 2008, Windows Server 2008 R2

See Also