Helper.Validate Method

Indicates whether a value can be converted to the specified primitive data type.

命名空间: Microsoft.SqlServer.Dts.Tasks.WebServiceTask
程序集: Microsoft.SqlServer.WebServiceTask (in microsoft.sqlserver.webservicetask.dll)

语法

声明
Public Shared Function Validate ( _
    datatype As String, _
    valueToValidate As String _
) As Boolean
public static bool Validate (
    string datatype,
    string valueToValidate
)
public:
static bool Validate (
    String^ datatype, 
    String^ valueToValidate
)
public static boolean Validate (
    String datatype, 
    String valueToValidate
)
public static function Validate (
    datatype : String, 
    valueToValidate : String
) : boolean

参数

  • datatype
    The primitive data type.
  • valueToValidate
    The value to validate.

返回值

true if the value can be converted to the primitive data type; otherwise, false.

线程安全

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.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

Helper Class
Helper Members
Microsoft.SqlServer.Dts.Tasks.WebServiceTask Namespace