AttributeDatabaseExtensionsFindOrAddAttributeValue(IAttributeDatabase, UInt32, DataDimensions, Boolean) Method |
Find or add an attribute value.
If an attribute value with the specified id already exists, then it's returned.
If an attribute value with the specified id does not exist, then a new attribute value is created.
Namespace: Demo3D.PLC.Comms.AttrDbAssembly: PLC (in PLC.dll) Version: 19.00.00
Syntaxpublic static AttributeValue FindOrAddAttributeValue(
this IAttributeDatabase attrDb,
uint attributeId,
DataDimensions dimensions,
out bool created
)
Parameters
- attrDb IAttributeDatabase
- The attribute database.
- attributeId UInt32
- The attribute id to find.
- dimensions DataDimensions
- The data dimension selection from the request that's accessing the attribute value.
- created Boolean
- True if the value was created.
Return Value
AttributeValueThe new/existing attribute value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAttributeDatabase. 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