 | 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.CAEXAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic IObjectWithRoleReference ReplaceRoleClassReference(
RoleFamilyType roleClass,
bool addSupportedRoleClass = false
)
Public Function ReplaceRoleClassReference (
roleClass As RoleFamilyType,
Optional addSupportedRoleClass As Boolean = false
) As IObjectWithRoleReference
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
IObjectWithRoleReferenceThe new role reference, created from the provided roleClass.
Exceptions
See Also