Click or drag to resize

SystemUnitClassTypeHasInterfaceClassReference Method

Determines whether this CAEX Element has an associated reference to the specified InterfaceClass. If inheritance relations between InterfaceClasses should be regarded, the optional parameter 'regardInheritance' should be set. In this case the specified InterfaceClass is either identical to a referenced InterfaceClass or a referenced InterfaceClass is derived from the specified InterfaceClass.

Namespace: Aml.Engine.CAEX
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public bool HasInterfaceClassReference(
	InterfaceFamilyType interfaceClass,
	bool regardInheritance = false
)

Parameters

interfaceClass  InterfaceFamilyType
The InterfaceClass object.
regardInheritance  Boolean  (Optional)
if set to true inheritance relations are regarded (default is false).

Return Value

Boolean
true if this CAEX Element object has an associated reference to the specified InterfaceClass; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionroleClass
Example
This sample shows how to call the HasInterfaceClassReference(InterfaceFamilyType, Boolean) method using a standard base InterfaceClass from the InterfaceClassLib(CAEXDocument)
C#
var amlInterfaceClassLib = AutomationMLInterfaceClassLibType.InterfaceClassLib (myDocument);
InternalElementType internalElement;
...
internalElement.HasInterfaceClassReference (amlInterfaceClassLib.COLLADAInterface);
See Also