 | RoleRequirementsTypeHasRoleClassReference Method |
Determines whether this RoleRequirements object has an associated reference to
the provided RoleClass. If inheritance relations between RoleClasses should be regarded, the
optional parameter 'regardInheritance' should be set. In this case the specified RoleClass is either identical
to the referenced RoleClass or the referenced RoleClass is derived from the provided RoleClass.
Namespace: Aml.Engine.CAEXAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic bool HasRoleClassReference(
RoleFamilyType roleClass,
bool regardInheritance = false
)
Public Function HasRoleClassReference (
roleClass As RoleFamilyType,
Optional regardInheritance As Boolean = false
) As Boolean
public:
bool HasRoleClassReference(
RoleFamilyType^ roleClass,
bool regardInheritance = false
)
Parameters
- roleClass RoleFamilyType
- The RoleClass object.
- regardInheritance Boolean (Optional)
-
if set to true inheritance relations
are regarded (default is false).
Return Value
Booleantrue if this RoleRequirement object has an associated reference to
the specified RoleClass; otherwise,
false.
Exceptions
See Also