Click or drag to resize

ObjectWithAttributesSetAttributeValueT(IObjectWithAttributes, String, T) Method

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.

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

Parameters

objWithAttr  IObjectWithAttributes
the CAEX object with an Attribute collection.
attName  String
The attribute name
attValue  T
The attribute value of a specific type

Type Parameters

T
Attribute value 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).
See Also