Value.ToType 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: 1.3.0.0

Syntax

C#

public Object ToType(
    Type conversionType,
    IFormatProvider provider
)

Parameters

conversionType

Type: System.Type
The Type to which this Value is converted.

provider

Type: System.IFormatProvider
An IFormatProvider that supplies culture-specific formatting information.

Return Value

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

Implements

IConvertible.ToType(Type, IFormatProvider)

Reference

Value Class

TcHmiSrv.Core Namespace