The IsValid property of the Role interface indicates whether the role object structure is valid.
Boolean
Read-only
A role object is valid if the Name and UsersList properties are not empty strings and if its Parent property is valid.
Use the following code to return a role object validity status:
Dim bRet As Boolean
bRet = RoleObject.IsValid