Udostępnij przez


PipelineComponent.IsCompatibleNumericTypes Method

Determines whether two numeric data types are compatible to support a conversion from one type to the other. This method is not CLS-compliant. The CLS-compliant alternative is .

Namespace: Microsoft.SqlServer.Dts.Pipeline
Assembly: Microsoft.SqlServer.PipelineHost (in microsoft.sqlserver.pipelinehost.dll)

Syntax

'Deklaracja
<CLSCompliantAttribute(False)> _
Protected Shared Function IsCompatibleNumericTypes ( _
    dataTypeInp As DataType, _
    dataTypeExt As DataType _
) As Boolean
[CLSCompliantAttribute(false)] 
protected static bool IsCompatibleNumericTypes (
    DataType dataTypeInp,
    DataType dataTypeExt
)
[CLSCompliantAttribute(false)] 
protected:
static bool IsCompatibleNumericTypes (
    DataType dataTypeInp, 
    DataType dataTypeExt
)
/** @attribute CLSCompliantAttribute(false) */ 
protected static boolean IsCompatibleNumericTypes (
    DataType dataTypeInp, 
    DataType dataTypeExt
)
CLSCompliantAttribute(false) 
protected static function IsCompatibleNumericTypes (
    dataTypeInp : DataType, 
    dataTypeExt : DataType
) : boolean

Parameters

  • dataTypeInp
    The numeric data type of the column to be converted.
  • dataTypeExt
    The numeric data type of the destination column.

Return Value

true if the numeric types are compatible, otherwise, false.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.