ByteAttribute class | QSYS API Reference Guide

Provides Byte 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 Byte, Model properties can use this attribute.

For example,

[Byte()]
public byte MY_BYTE_FIELD { get; set; }

Declares a read/write field of Fixed Type Byte named MY_BYTE_FIELD on a particular Model Record.

Note that there is no need to indicate the field length, one is the only possible length.

Constructors

Name Description
ByteAttribute() Initializes a new ByteAttribute instance

ByteAttribute()

Initializes a new ByteAttribute instance

ByteAttribute()

Methods

Signature Description
GetFrom(MemberInfo) Gets a ByteAttribute from a field member

ByteAttribute GetFrom(MemberInfo fieldMember)

Gets a ByteAttribute from a field member

ByteAttribute GetFrom(MemberInfo fieldMember)

Parameters

Type Parameter name Description
MemberInfo fieldMember field member information

Returns

Type Description
ByteAttribute the byte attribute