DynamicEnumValue Class

Class DynamicEnumValue. Implements the DynamicValue

Inheritance Hierarchy

System.Object
  System.Dynamic.DynamicObject
    TwinCAT.TypeSystem.DynamicValue
      TwinCAT.TypeSystem.DynamicEnumValue
Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public class DynamicEnumValue : DynamicValue

The DynamicEnumValue type exposes the following members.

Properties

 

Name

Description

Age

Gets the age of the value (last successful read of the value) (Inherited from DynamicValue.)

CachedRaw

Gets the cached Raw internal Data. (Inherited from DynamicValue.)

DataType

Gets the data type bound to this IValue (Inherited from DynamicValue.)

IsPrimitive

Gets a value indicating whether this IValue is a primitive value. (Inherited from DynamicValue.)

ParentValue

Gets the parent value. (Inherited from DynamicValue.)

ResolvedType

Gets the resolved type. (Inherited from DynamicValue.)

Symbol

Gets the symbol that is bound to this value. (Inherited from DynamicValue.)

TimeStamp

Gets the Time stamp of the last successful read of the Value. (Inherited from DynamicValue.)

UpdateMode

Gets / Sets the update mode (Inherited from DynamicValue.)

ValueFactory

The value factory (Inherited from DynamicValue.)

Methods

 

Name

Description

Equals

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

Finalize

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

GetDynamicMemberNames

Returns the enumeration of all dynamic member names. (Inherited from DynamicValue.)

GetHashCode

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

GetMetaObject

Provides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code. (Inherited from DynamicObject.)

GetType

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

MemberwiseClone

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

Read

Reads the value (via ADS) (Inherited from DynamicValue.)

ReadAsync

read as an asynchronous operation. (Inherited from DynamicValue.)

ResolveValue

Resolves the Value object to its primitive value. (Inherited from DynamicValue.)

setMemberValue

Writes the specified member element. (Inherited from DynamicValue.)

ToString

Returns a String that represents this instance. (Inherited from DynamicValue.)

TryBinaryOperation

Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication. (Inherited from DynamicObject.)

TryConvert

Provides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another. (Inherited from DynamicValue.)

TryCreateInstance

Provides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)

TryDeleteIndex

Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)

TryDeleteMember

Provides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic. (Inherited from DynamicObject.)

TryGetArrayElementValues

Returns Array Element values. (Inherited from DynamicValue.)

TryGetIndex

Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations. (Inherited from DynamicValue.)

TryGetIndexValue(.Int32., Object.)

Reads the specified array element. (Inherited from DynamicValue.)

TryGetIndexValue(.Object., Object.)

Tries the get index value. (Inherited from DynamicValue.)

TryGetMember

Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property. (Inherited from DynamicValue.)

TryGetMemberValue

Tries the get member value. (Inherited from DynamicValue.)

TryInvoke

Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate. (Inherited from DynamicValue.)

TryInvokeMember

Provides the implementation for operations that invoke a member. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method. (Inherited from DynamicValue.)

TryResolveValue

Tries to resolves the Value object to its primitive value. (Inherited from DynamicValue.)

TrySetIndex

Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index. (Inherited from DynamicValue.)

TrySetIndexValue(.Int32., Object)

Tries to set the indexed value on Arrays (Inherited from DynamicValue.)

TrySetIndexValue(.Object., Object)

Tries to set the indexed value on Arrays (Inherited from DynamicValue.)

TrySetMember

Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property. (Inherited from DynamicValue.)

TrySetMemberValue

Tries to Set a Member/Property Value (Inherited from DynamicValue.)

TryUnaryOperation

Provides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement. (Inherited from DynamicObject.)

Write

Writes the value (via ADS) (Inherited from DynamicValue.)

WriteAsync

write as an asynchronous operation. (Inherited from DynamicValue.)

Reference

TwinCAT.TypeSystem Namespace

TwinCAT.TypeSystem.DynamicValue