Метод Validate
Indicates whether a value can be converted to the specified primitive data type.
Пространство имен: Microsoft.SqlServer.Dts.Tasks.WebServiceTask
Сборка: Microsoft.SqlServer.WebServiceTask (в Microsoft.SqlServer.WebServiceTask.dll)
Синтаксис
'Декларация
Public Shared Function Validate ( _
datatype As String, _
valueToValidate As String _
) As Boolean
'Применение
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
Параметры
- datatype
Тип: System. . :: . .String
The primitive data type.
- valueToValidate
Тип: System. . :: . .String
The value to validate.
Возвращаемое значение
Тип: System. . :: . .Boolean
true if the value can be converted to the primitive data type; otherwise, false.