CreateParameter() method

Provides an SAParameter object for supplying parameters to SACommand objects.

Visual Basic syntax

Public Shadows Function CreateParameter () As SAParameter

C# syntax

public new SAParameter CreateParameter ()

Returns

A new parameter, as an SAParameter object.

Usage

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.