Dela via


Helper.Validate Method

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

Namespace:  Microsoft.SqlServer.Dts.Tasks.WebServiceTask
Assembly:  Microsoft.SqlServer.WebServiceTask (in Microsoft.SqlServer.WebServiceTask.dll)

Syntax

'Declaration
Public Shared Function Validate ( _
    datatype As String, _
    valueToValidate As String _
) As Boolean
'Usage
Dim datatype As String
Dim valueToValidate As String
Dim returnValue As Boolean

returnValue = Helper.Validate(datatype, _
    valueToValidate)
public static bool Validate(
    string datatype,
    string valueToValidate
)
public:
static bool Validate(
    String^ datatype, 
    String^ valueToValidate
)
static member Validate : 
        datatype:string * 
        valueToValidate:string -> bool 
public static function Validate(
    datatype : String, 
    valueToValidate : String
) : boolean

Parameters

Return Value

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