ValueToType Method

Converts the Value to an equivalent Object of the specified Type using the specified IFormatProvider.


Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public Object ToType(
    Type conversionType,
    IFormatProvider provider
)

Parameters

conversionType  Type

The Type to which this Value is converted.

provider  IFormatProvider

An IFormatProvider that supplies culture-specific formatting information.

Return Value

Object
An Object of conversionType whose value is equivalent to the Value.

Implements

IConvertibleToType(Type, IFormatProvider)

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

Value Class TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG