Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ULParameter をコレクションに追加します。
Public Function Add(ByVal value As ULParameter) As ULParameter
public ULParameter Add(ULParameter value)
value コレクションに追加される ULParameter オブジェクト。
新しい ULParameter オブジェクト。
ArgumentNullException 値を null (Visual Basic の Nothing) にすることはできません。
ArgumentException ULParameter オブジェクトは、一度しかコレクションに追加できません。
コレクション内のすべてのパラメーターは、位置パラメーターとして扱われ、ULCommand.CommandText の疑問符のプレースホルダーと同じ順序で指定する必要があります。たとえば、コレクション内の最初のパラメーターは、SQL 文の最初の疑問符に対応し、コレクション内の 2 番目のパラメーターは、SQL 文の 2 番目の疑問符に対応します。ULCommand.CommandText 内の疑問符の数は、少なくともコレクション内のパラメーターの数と同じでなければなりません。パラメーターが不足している場合は、NULL が代用されます。