 | CAEXSequenceTItem(ValueTupleString, String) Property |
Gets the first CAEX element with a specific XML-Attribute-Value from the sequence of elements.
Namespace: Aml.Engine.CAEXAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic T this[
(string Name, string Value) attributeValuePair
] { get; }
Public ReadOnly Default Property Item (
attributeValuePair As (Name As String, Value As String)
) As T
Get
public:
property T default[ValueTuple<String^, String^> attributeValuePair] {
T get (ValueTuple<String^, String^> attributeValuePair);
}
Parameters
- attributeValuePair ValueTupleString, String
- Pair of attribute name and attribute value.
Return Value
Tthe 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
var attributeWithUnit=internalElement.Attribute[(CAEX_CLASSModel_TagNames.ATTRIBUTE_UNIT_STRING, "mm")];
var referenceWithAlias = caexFile.ExternalReference[(CAEX_CLASSModel_TagNames.ALIAS_ATTRIBUTE, "baseClasses")];
See Also