GetClassRights Method
See Also 
SourceCode.Authorization.Client Namespace > AuthorizationClient Class : GetClassRights Method



identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
classID
The ID of the class.

Glossary Item Box

Get the set of actions that the identity is authorized to perform on a class.

Syntax

Visual Basic (Declaration) 
Public Function GetClassRights( _
   ByVal identityName As String, _
   ByVal identityType As SourceCode.Authorization.Interfaces.IdentityType, _
   ByVal classID As Guid _
) As Long
Visual Basic (Usage)Copy Code
Dim instance As AuthorizationClient
Dim identityName As String
Dim identityType As SourceCode.Authorization.Interfaces.IdentityType
Dim classID As Guid
Dim value As Long
 
value = instance.GetClassRights(identityName, identityType, classID)
C# 
public long GetClassRights( 
   string identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid classID
)
C++/CLI 
public:
int64 GetClassRights( 
   String^ identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid classID
) 

Parameters

identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
classID
The ID of the class.

Return Value

A bit mask of authorizated actions (0 meaning none and -1 meaning all or owner)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also