Partager via


Helper.Validate Method

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

Espace de noms: Microsoft.SqlServer.Dts.Tasks.WebServiceTask
Assembly: Microsoft.SqlServer.WebServiceTask (in microsoft.sqlserver.webservicetask.dll)

Syntaxe

'Déclaration
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

Paramètres

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

Valeur de retour

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

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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