Click or drag to resize

AttributeDatabaseExtensionsGetByteArrayAttribute(IAttributeDatabase, UInt32, Int32, BufferSegment) Method

Finds or creates an attribute.

Namespace: Demo3D.PLC.Comms.AttrDb
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public static ByteArrayAttribute GetByteArrayAttribute(
	this IAttributeDatabase attrDb,
	uint attributeId,
	int numElements,
	BufferSegment defaultValue
)

Parameters

attrDb  IAttributeDatabase
The attribute database.
attributeId  UInt32
The attribute id.
numElements  Int32
Number of elements in the array.
defaultValue  BufferSegment
Default value if the attribute is created.

Return Value

ByteArrayAttribute
The attribute.

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