CreateParameter Method

SqlCommand.CreateParameter Method

Creates a new instance of a SqlParameter object.

[Visual Basic]
Public Function CreateParameter() As SqlParameter
public SqlParameter CreateParameter();
public: SqlParameter* CreateParameter();
public function CreateParameter() : SqlParameter;

Return Value

A SqlParameter object.


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SqlCommand Class | SqlCommand Members | System.Data.SqlClient Namespace

© 2015 Microsoft