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



identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
objectID
The ID of the object.

Glossary Item Box

Get the set of actions that the identity is authorized to perform on an object.

Syntax

Visual Basic (Declaration) 
Public Function GetObjectRights( _
   ByVal identityName As String, _
   ByVal identityType As SourceCode.Authorization.Interfaces.IdentityType, _
   ByVal objectID 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 objectID As Guid
Dim value As Long
 
value = instance.GetObjectRights(identityName, identityType, objectID)
C# 
public long GetObjectRights( 
   string identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid objectID
)
C++/CLI 
public:
int64 GetObjectRights( 
   String^ identityName,
   SourceCode.Authorization.Interfaces.IdentityType identityType,
   Guid objectID
) 

Parameters

identityName
The name of the identity.
identityType
The SourceCode.Authorization.Interfaces.IdentityType of the identity.
objectID
The ID of the object.

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