CreateParameter method

Provides an SAParameter object for supplying parameters to SACommand objects.

Syntax
Visual Basic

Public Function CreateParameter() As SAParameter
C#

public SAParameter CreateParameter();
Return value

A new parameter, as an SAParameter object.

Remarks

Stored procedures and some other SQL statements can take parameters, indicated in the text of a statement by a question mark (?).

The CreateParameter method provides an SAParameter object. You can set properties on the SAParameter to specify the value, data type, and so on for the parameter.

See also