asp.net.ph

SqlParameter Constructor ( )

System.Data.SqlClient Namespace   SqlParameter Class


Initializes a new instance of the SqlParameter class. This is the default constructor.

[ VB ]
Overloads Public Sub New ( )

[ C# ]
public SqlParameter ( );

[ C++ ]
public: SqlParameter ( );

[ JScript ]
public function SqlParameter ( );

Example

The following example initializes an SqlParameter using this constructor and sets some of its properties.

public void CreateSqlParameter ( ) {
   SqlParameter myParam = new SqlParameter ( );
   myParam.ParameterName = "Description";
   myParam.SqlDbType = SqlDbType.VarChar;
   myParam.Direction = ParameterDirection.Output;
   myParam.Size = 100;
}
  C# VB

See Also

SqlParameter Members   SqlParameter Constructor Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph