バージョン

Validate(Object,Type,ValueConstraintFlags,IFormatProvider,String,String) メソッド

引数が、現在の制約設定に関して有効と見なされる場合、True を返します。
シンタックス
'宣言
 
Public Overloads Function Validate( _
   ByVal dataValue As Object, _
   ByVal targetType As Type, _
   ByVal constraintFlags As ValueConstraintFlags, _
   ByVal formatProvider As IFormatProvider, _
   ByVal format As String, _
   ByRef errorMessage As String _
) As Boolean

パラメータ

dataValue
検証するデータ値。
targetType
データ型を表す Type オブジェクト。'dataValue' がこのデータ型として検証されます。
constraintFlags
検証中に適用する制約を示すビット フラグ。
formatProvider
値と文字列との間の相互変換に使用する IFormatProvider。
format
値と文字列との間の相互変換に使用する書式文字列。
errorMessage
データ値が無効な場合、この出力パラメーターはエラー メッセージを参照します。

戻り値の型

入力値が、このオブジェクトに対して設定された適用可能なすべての制約を満たしている場合は True を返します。それ以外の場合は False を返します。
参照