IObjectSecurity Property: PrimaryGroup

Property Name
PrimaryGroup

Property Type
String

Description
Returns the primary group associated with an object.

Example

Dim ObjSec  As IObjectSecurity
Set ObjSec = CreateObject("DirectScript.ObjectSecurity")
'Attach to the file c:\test.txt
ObjSec.AttachFile "c:\test.txt"
'Print the primary group for the file test.txt
Debug.Print ObjSec.PrimaryGroup

 

See Also