SqlCeParameterCollection.Add Method (String, SqlDbType, Int32)
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Adds a SqlCeParameter to the SqlCeParameterCollection given the the parameter name, data type, and column width.
[Visual Basic] Overloads Public Function Add( _ ByVal parameterName As String, _ ByVal type As SqlDbType, _ ByVal size As Integer _ ) As SqlCeParameter [C#] public SqlCeParameter Add(string parameterName,SqlDbType type,int size ); [C++] public: SqlCeParameter* Add(String* parameterName,SqlDbType type,int size ); [JScript] public function Add( parameterName : String, type : SqlDbType, size : int) : SqlCeParameter;
Parameters
- parameterName
The name of the parameter. - type
One of the SqlDbType values. - size
The width of the column.
Return Value
A reference to the new SqlCeParameter object.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeParameterCollection Class | SqlCeParameterCollection Members | System.Data.SqlServerCe Namespace | SqlCeParameterCollection.Add Overload List
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.