Click or drag to resize

ObjectWithAttributesSetAttributeValue(IObjectWithAttributes, String, String) Method

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.

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
)

Parameters

objWithAttr  IObjectWithAttributes
the CAEX object with an Attribute collection.
attName  String
The attribute name
attValue  String
The attribute value, encoded as a string

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