IObjectSecurity Method: GetAllPermissions

GetAllPermissions
(
) As String;

Description
Returns all the permissions possible for the currently attached securable object. See Access Permissions for permissions that can be returned for different securable objects.

Example

Dim ObjSec  As IObjectSecurity
Dim strFilePath  As String
strFilePath = "d:\test.txt"
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the file d:\test.txt
ObjSec.AttachFile strFilePath
'Get all the permissions for the attached file
Debug.Print ObjSec.GetAllPermissions

 

See Also