IValue.TryResolveValue Method

Tries to resolves the Value object to its primitive value.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

bool TryResolveValue(
    bool resolveEnumToPrimitive,
    out Object value
)

VB

Function TryResolveValue ( 
    resolveEnumToPrimitive As Boolean,
    <OutAttribute> ByRef value As Object
) As Boolean

Parameters

resolveEnumToPrimitive

Type: System.Boolean
if set to trueIEnumValues are resolved to their primitives also.

value

Type: System.Object.
The value.

Return Value

Type: Boolean
true if value can be resolved, false otherwise.

Reference

IValue Interface

TwinCAT.TypeSystem Namespace