Indicates whether the collection of UNIX group profiles is empty.


bool IsEmpty {get;}

Property value

Returns true if there are no group profiles in the GroupUnixProfiles object, or false if there is at least one UNIX group profile in the object.


Unlike the Count property, the IsEmpty property does not query all of the profiles in the collection before it returns a value. If you only need to determine whether any profiles are defined, call this property for a faster response.


The following code sample illustrates using IsEmpty in a script:

set objZone = cims.GetZoneByPath("LDAP://CN=research, CN=zones,CN=centrify,CN=program data, DC=sierra, DC=com")
If objGroupUnixProfiles.IsEmpty then
   wscript.echo "No profiles defined”
   wscript.echo objGroupUnixProfiles.Count & " profiles defined”
End if