Share via


SqlCommand.CreateParameter Method

Definition

Creates a new instance of a SqlParameter object.

public:
 Microsoft::Data::SqlClient::SqlParameter ^ CreateParameter();
public Microsoft.Data.SqlClient.SqlParameter CreateParameter ();
override this.CreateParameter : unit -> Microsoft.Data.SqlClient.SqlParameter
Public Function CreateParameter () As SqlParameter

Returns

A SqlParameter object.

Remarks

The CreateParameter method is a strongly-typed version of CreateParameter.

Applies to