BaseRecordAttribute class | QSYS API Reference Guide
Defines Base Record Attributes on a type
Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll
Inheritance: Object –> Attribute
Remarks
Model record classes may be declared with attributes to indicate runtime behavior. For example, ChangeIndicator = 44 declares that when this record is changed by user interaction, the Indicator 44 should be set, such that logic can test this value and react to the change.
As any C# Attributes, the syntax uses brackets right before the declaration of the class, for example:
[
Record( ChangeIndicator = 44 )
]
public class MyRecord_Model : RecordModel
{
Defines the attribute ChangeIndicator for MyRecord_Model class.
The BaseRecordAttribute provides common attributes to all RecordModels. Specialized (derived) Record classes, provide more attributes valid only to that class.
Properties
| Type | Name | Description |
|---|---|---|
| Int32 | ChangeIndicator | Gets or sets the value that represents the Change indicator |
| String | FormatLevel | Gets or sets the Record Format Level Check hash code as a string |
| String | SetOffIndicators | Gets or sets a collection of Indicators to Set Off. The collection is a comma separated string |
Methods
| Signature | Description |
|---|---|
| GetFrom(Type) | Gets a BaseRecordAttribute from the Custom attributes associated with a type. |
BaseRecordAttribute GetFrom(Type type)
Gets a BaseRecordAttribute from the Custom attributes associated with a type.
BaseRecordAttribute GetFrom(Type type)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Type | type | input type |
Returns
| Type | Description |
|---|---|
| BaseRecordAttribute | the attribute |