IField Interface

Specifies a single field/member of a Struct DataType.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public interface IField : IAttributedInstance, IInstance, 
    IBitSize

The IField type exposes the following members.

Properties

 

Name

Description

IField Interface 1:

Attributes

Gets the Type Attributes. (Inherited from IAttributedInstance.)

IField Interface 2:

BitSize

Gets the size of the IDataType in bits. (Inherited from IBitSize.)

IField Interface 3:

ByteSize

Gets the (aligned) size of of the Type/Instance in Bytes (Inherited from IBitSize.)

IField Interface 4:

Comment

Gets the comment of the IInstance (Inherited from IInstance.)

IField Interface 5:

DataType

Gets the IDataType of the IInstance. (Inherited from IInstance.)

IField Interface 6:

InstanceName

Gets the name of the instance (without periods (.) (Inherited from IInstance.)

IField Interface 7:

InstancePath

Gets the relative / absolute access path to the instance (with periods (.)) (Inherited from IInstance.)

IField Interface 8:

IsBitType

Gets a value indicating whether this instance is not basing on a full DataType but instead of some sort of bit mapping (Inherited from IBitSize.)

IField Interface 9:

IsByteAligned

Indicates that the Size of the Object is Byte aligned (BitSize % 8 == 0) (Inherited from IBitSize.)

IField Interface 10:

IsPointer

Indicates that the IInstance represents a Pointer type (Pointer TO) (Inherited from IInstance.)

IField Interface 11:

IsReference

Indicates that the IInstance represents a Reference type (REFERENCE TO) (Inherited from IInstance.)

IField Interface 12:

IsStatic

Gets a value indicating whether this IInstance is static. (Inherited from IInstance.)

IField Interface 13:

ParentType

Gets the Parent Struct/Union of this IField.

IField Interface 14:

Size

Gets the size of the object in bytes or Bits dependant on IsBitType (Inherited from IBitSize.)

IField Interface 15:

TypeName

Gets the name of the DataType that is used for this IInstance. (Inherited from IInstance.)

IField Interface 16:

ValueEncoding

Gets the value encoding. (Inherited from IAttributedInstance.)

Extension Methods

 

Name

Description

ReferencesExternalData

Indicates, that the Instance value includes process memory data, that cannot be read in one memory block. (Defined by DataTypeExtension.)

Reference

TwinCAT.TypeSystem Namespace