AttributeDatabaseExtensionsGetShortStringAttribute Method (IAttributeDatabase, UInt32, Int32, String) |
Finds or creates an attribute.
Namespace:
Demo3D.PLC.Comms.AttrDb
Assembly:
PLC (in PLC.dll) Version: 18.03.00
Syntaxpublic static ShortStringAttribute GetShortStringAttribute(
this IAttributeDatabase attrDb,
uint attributeId,
int maxStringLength,
string? defaultValue = null
)
Parameters
- attrDb
- Type: Demo3D.PLC.Comms.AttrDbIAttributeDatabase
The attribute database. - attributeId
- Type: SystemUInt32
The attribute id. - maxStringLength
- Type: SystemInt32
The maximum string length. - defaultValue (Optional)
- Type: SystemString
Default value if the attribute is created.
Return Value
Type:
ShortStringAttributeThe 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