Click or drag to resize

ObjectWithAttributesSetAttributeValue(IObjectWithAttributes, String, String, String, String) Method

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.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static AttributeType SetAttributeValue(
	this IObjectWithAttributes objWithAttr,
	string attName,
	string attValue,
	string attUnit,
	string attAttributeDataType
)

Parameters

objWithAttr  IObjectWithAttributes
parent object
attName  String
attribute name
attValue  String
xml encoded string value
attUnit  String
attribute unit
attAttributeDataType  String
attribute data type

Return Value

AttributeType
The modified attribute.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObjectWithAttributes. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Please note, when this method is used the caller is responsible to select the right xml-encoding of the string so it is compatible to the attribute data type. A better solution is to use the generic method which allows to define the required value type SetAttributeValueT(IObjectWithAttributes, String, T).
See Also