Click or drag to resize

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.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static bool IsDerivedFromRoleClass(
	this 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

Boolean
true 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