Click or drag to resize

CAEXSequenceTItem(ValueTupleString, String) Property

Gets the first CAEX element with a specific XML-Attribute-Value from the sequence of elements.

Namespace: Aml.Engine.CAEX
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public T this[
	(string Name, string Value) attributeValuePair
] { get; }

Parameters

attributeValuePair  ValueTupleString, String
Pair of attribute name and attribute value.

Return Value

T
the first CAEX object, which matches this condition.
Remarks
Please note, that the name of the attributeValuePair shall be a valid name of an XML-Attribute like the ATTRIBUTE_UNIT_STRING or ALIAS_ATTRIBUTE to be confused with a CAEX Attribute element AttributeType. If the attribute value is not unique, the first matching element of the sequence is returned.
Example
C#
// get the first attribute with a unit in 'mm'
var attributeWithUnit=internalElement.Attribute[(CAEX_CLASSModel_TagNames.ATTRIBUTE_UNIT_STRING, "mm")];

// get the external reference with the alias 'baseClasses'
var referenceWithAlias = caexFile.ExternalReference[(CAEX_CLASSModel_TagNames.ALIAS_ATTRIBUTE, "baseClasses")];
See Also