CharAttribute class | QSYS API Reference Guide
Estimated reading time: 2 minutes
Provides Char Attributes (for Properties)
Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll
Inheritance: Object –> Attribute –> FieldAttribute
Remarks
Model Fields are declared as Record Properties. To annotate the Fixed Type as Char
, Model properties can use this attribute.
For example,
[Char(25)]
public string SFCSZ { get; private set; } // CITY-STATE-ZIP
Declares a read-only field of Fixed Type Char
, with length of 25 chars, named SFCSZ
on a particular Model Record.
Constructors
Name | Description |
---|---|
CharAttribute(Int32) | Char attribute constructor. |
CharAttribute(Int32)
Char attribute constructor.
CharAttribute(Int32)
Parameters
Type | Parameter name | Description |
---|---|---|
Int32 | length | field length |
Properties
Type | Name | Description |
---|---|---|
Boolean | CompareAllowBlanks | Allow all-blank input to satisfy validity checking when any associated validity check fails. Legacy DDS CHECK(AB) |
String | Equal | Exact value |
String | GraterThan | Lower exclusive bound |
String | InputOnlyValue | Input-only attribute |
Int32 | Length | Length attribute |
String | LessThan | Upper exclusive bound |
String | Max | Maximum acceptable value |
String | Min | Minimum acceptable value |
String | NotEqual | Excluded value |
Boolean | Upper | Gets a sets a value indicating if character input will be converted to uppercase or will be left alone to preserving the letter casing typed. Defaults to true. |
Methods
Signature | Description |
---|---|
GetFrom(MemberInfo) | Gets a CharAttribute from a field member |
CharAttribute GetFrom(MemberInfo fieldMember)
Gets a CharAttribute from a field member
CharAttribute GetFrom(MemberInfo fieldMember)
Parameters
Type | Parameter name | Description |
---|---|---|
MemberInfo | fieldMember | field member information |
Returns
Type | Description |
---|---|
CharAttribute | the char attribute |