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



identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
classID
The ID of the class.
rights
The rights to be granted.

Glossary Item Box

Deny the rights for an identity on a class.

Syntax

Visual Basic (Declaration) 
Public Sub GrantClassRights( _
   ByVal identityName As String, _
   ByVal identityType As SourceCode.Authorization.Interfaces.IdentityType, _
   ByVal classID As Guid, _
   ByVal rights 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 rights As Long
 
instance.GrantClassRights(identityName, identityType, classID, rights)
C# 
public void GrantClassRights( 
   string identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid classID,
   long rights
)
C++/CLI 
public:
void GrantClassRights( 
   String^ identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid classID,
   int64 rights
) 

Parameters

identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
classID
The ID of the class.
rights
The rights to be granted.

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