Instance Class

Instance implementation

Inheritance Hierarchy

System.Object
  TwinCAT.Ads.TypeSystem.Instance
    TwinCAT.Ads.TypeSystem.Field
    TwinCAT.Ads.TypeSystem.Symbol
Namespace:  TwinCAT.Ads.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.116+a71ced3

Syntax

C#

public class Instance : IInstance, IBitSize

The Instance type exposes the following members.

Properties

 

Name

Description

Instance Class 1:

Attributes

Gets the Type Attributes.

Instance Class 2:

BitSize

Gets the size of this Instance in bits.

Instance Class 3:

ByteSize

Gets the (aligned) size of of the Type/Instance in Bytes

Instance Class 4:

Category

Gets the the DataTypeCategory of the Instance.

Instance Class 5:

Comment

Gets the comment.

Instance Class 6:

ContextMask

Gets the context mask of this instance.

Instance Class 7:

DataType

Gets the IDataType of the IInstance.

Instance Class 8:

HasValue

Gets a value indicating whether this instance has a value.

Instance Class 9:

InstanceName

Gets the name of the instance (without periods (.)

Instance Class 10:

InstancePath

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

Instance Class 11:

IsBitType

Gets a value indicating whether this instance is not basing on a full DataType but instead of some sort of bit mapping

Instance Class 12:

IsByteAligned

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

Instance Class 13:

IsPersistent

Indicates that this instance is persistent.

Instance Class 14:

IsPointer

Gets a value indicating whether this instance is reference.

Instance Class 15:

IsReadOnly

Indicates that this instance is read only.

Instance Class 16:

IsReference

Gets a value indicating whether this instance is reference.

Instance Class 17:

IsStatic

Gets a value indicating whether this IInstance is static.

Instance Class 18:

IsTcComInterfacePointer

Indicates that this instance is a TcComInterfacePointer.

Instance Class 19:

IsTypeGuid

Indicates that this instance has set TypeGuid flag.

Instance Class 20:

Namespace

Gets the namespace name.

Instance Class 21:

Size

Gets the size of the IDataType in bytes or Bits dependant on IsBitType

Instance Class 22:

TypeName

Gets the name of the DataType that is used for this IInstance.

Methods

 

Name

Description

Instance Class 23:

Instance Class 24:

AlignTypeName

Aligns the type name

Instance Class 25:

Equals

Determines whether the specified object is equal to the current object. (Inherited from Object.)

Instance Class 26:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Instance Class 27:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

Instance Class 28:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Instance Class 29:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Instance Class 30:

OnGetSize

Handler function getting the size of the Instance

Instance Class 31:

OnSetInstanceName

Sets a new InstanceName InstancePath

Instance Class 32:

SetAttributes

Sets the type attributes

Instance Class 33:

SetContextMask

Sets the context mask.

Instance Class 34:

ToString

Returns a String that represents this instance. (Overrides Object.ToString..)

Reference

TwinCAT.Ads.TypeSystem Namespace