IsCompatibleNumericTypes 方法

Determines whether two numeric data types are compatible to support a conversion from one type to the other.

此 API 不符合 CLS。 符合 CLS 的替代项是 。

命名空间:  Microsoft.SqlServer.Dts.Pipeline
程序集:  Microsoft.SqlServer.PipelineHost(在 Microsoft.SqlServer.PipelineHost.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Protected Shared Function IsCompatibleNumericTypes ( _
    dataTypeInp As DataType, _
    dataTypeExt As DataType _
) As Boolean
用法
Dim dataTypeInp As DataType
Dim dataTypeExt As DataType
Dim returnValue As Boolean

returnValue = PipelineComponent.IsCompatibleNumericTypes(dataTypeInp, _
    dataTypeExt)
[CLSCompliantAttribute(false)]
protected static bool IsCompatibleNumericTypes(
    DataType dataTypeInp,
    DataType dataTypeExt
)
[CLSCompliantAttribute(false)]
protected:
static bool IsCompatibleNumericTypes(
    DataType dataTypeInp, 
    DataType dataTypeExt
)
[<CLSCompliantAttribute(false)>]
static member IsCompatibleNumericTypes : 
        dataTypeInp:DataType * 
        dataTypeExt:DataType -> bool 
protected static function IsCompatibleNumericTypes(
    dataTypeInp : DataType, 
    dataTypeExt : DataType
) : boolean

参数

返回值

类型:System. . :: . .Boolean
true if the numeric types are compatible, otherwise, false.