Freigeben über


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

Parameter

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

Rückgabewert

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

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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