 | InheritanceExtensionsIsDerivedFromRoleClass Method |
Determines whether the specified role reference defines an inheritance relation from the role,
uniquely identifiable by the given role class path. The role class path may contain an alias.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool IsDerivedFromRoleClass(
this IObjectWithRoleReference roleReference,
string roleClassPath
)
<ExtensionAttribute>
Public Shared Function IsDerivedFromRoleClass (
roleReference As IObjectWithRoleReference,
roleClassPath As String
) As Boolean
public:
[ExtensionAttribute]
static bool IsDerivedFromRoleClass(
IObjectWithRoleReference^ roleReference,
String^ roleClassPath
)
Parameters
- roleReference IObjectWithRoleReference
- The role reference - this is a supported role class or a role requirement.
- roleClassPath String
-
A class path of a base role, which is tested for a possible inheritance relation to
the specified role reference.
Return Value
Booleantrue if an inheritance relation is resolved; otherwise,
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IObjectWithRoleReference. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also