Click or drag to resize

InternalElementTypeReplaceRoleClassReference Method

Replaces an existing role class reference to the provided role or any generic base role of the provided role by a new instance of the role class.

Namespace: Aml.Engine.CAEX
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public IObjectWithRoleReference ReplaceRoleClassReference(
	RoleFamilyType roleClass,
	bool addSupportedRoleClass = false
)

Parameters

roleClass  RoleFamilyType
The role class.
addSupportedRoleClass  Boolean  (Optional)
if set to true a supported role class is created.

Return Value

IObjectWithRoleReference
The new role reference, created from the provided roleClass.
Exceptions
ExceptionCondition
ArgumentNullExceptionroleClass
See Also