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
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
Parameters
- datatype
The primitive data type.
- valueToValidate
The value to validate.
Return Value
true if the value can be converted to the primitive data type; otherwise, false.
Thread Safety
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.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
Helper Class
Helper Members
Microsoft.SqlServer.Dts.Tasks.WebServiceTask Namespace