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.