Compartilhar via


Método Validate

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

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

Sintaxe

'Declaração
Public Shared Function Validate ( _
    datatype As String, _
    valueToValidate As String _
) As Boolean
'Uso
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

Parâmetros

Valor de retorno

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