 | 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.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static AttributeType SetAttributeValue<T>(
this IObjectWithAttributes objWithAttr,
string attName,
T attValue
)
<ExtensionAttribute>
Public Shared Function SetAttributeValue(Of T) (
objWithAttr As IObjectWithAttributes,
attName As String,
attValue As T
) As AttributeType
public:
[ExtensionAttribute]
generic<typename T>
static AttributeType^ SetAttributeValue(
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
AttributeTypeThe 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