Click or drag to resize

ObjectWithAttributes Class

Extension methods for all objects with Attribute collections.
Inheritance Hierarchy
SystemObject
  Aml.Engine.CAEX.ExtensionsObjectWithAttributes

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static class ObjectWithAttributes

The ObjectWithAttributes type exposes the following members.

Methods
 NameDescription
Public Extension MethodCode exampleAddAttributeTypeReference(IObjectWithAttributes, AttributeFamilyType, Boolean, Boolean, String) Adds an AttributeType reference to this ObjectWithAttribute using the provided AttributeType object. The AttributeType reference is added as a AttributeType object.
Public Extension MethodCode exampleAddAttributeTypeReference(IObjectWithAttributes, String, Boolean, Boolean, String) Adds an AttributeType reference to this ObjectWithAttribute using the provided CAEX path, referencing an AttributeType object. The AttributeType reference is added as a AttributeType object.
Public Extension MethodCopyAttributesFrom Copies all attribute of the source object with attributes to the target object including children
Public Extension MethodGetAttributeObsolete.
Gets the first attribute with the specified name from the attribute collection of the CAEX object.
Public Extension MethodNew_Attribute Appends a new Attribute object with the defined name to the specified CAEX object.
Public Extension MethodCode exampleSetAttributeValue(IObjectWithAttributes, String, Double) Modifies the attribute with the specified name from the attribute collection of the CAEX object, using the provided double value. If no attribute with that name exists, it is created. Sets the AttributeDataType to xs:double. To change existing attributes it is recommended to use indexers (see examples below).
Public Extension MethodSetAttributeValue(IObjectWithAttributes, String, String) Sets a value for the attribute from a string with the specified name from the attribute collection of the CAEX object. If no attribute with that name exists, it is created.
Public Extension MethodSetAttributeValue(IObjectWithAttributes, String, String, String, String) Modifies the attribute with the specified name from the attribute collection of the CAEX object, using the provided values. If no attribute with that name exists, it is created.
Public Extension MethodSetAttributeValue(IObjectWithAttributes, String, Double, Double, String, String) Modifies the attribute with the specified name from the attribute collection of the CAEX object, using the provided values. If no attribute with that name exists, it is created. Sets the AttributeDataType to xs:double
Public Extension MethodSetAttributeValue(IObjectWithAttributes, String, String, String, String, String, String) Modifies the attribute with the specified name from the attribute collection of the CAEX object, using the provided values. If no attribute with that name exists, it is created.
Public Extension MethodSetAttributeValueT(IObjectWithAttributes, String, T) Sets a typed value for the attribute with the specified name from the attribute collection of the CAEX object. If no attribute with that name exists, it is created. The correct encoding for the attribute value xml representation is automatically defined.
Top
See Also