Redigera

Dela via


SqlCommand.CreateParameter Method

Definition

Creates a new instance of a SqlParameter object.

public:
 System::Data::SqlClient::SqlParameter ^ CreateParameter();
public System.Data.SqlClient.SqlParameter CreateParameter ();
override this.CreateParameter : unit -> System.Data.SqlClient.SqlParameter
member this.CreateParameter : unit -> System.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

See also