SqlCeParameterCollection.Add Method (String, SqlDbType, Int32, String)
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Adds a SqlCeParameter to the SqlCeCommand given the parameter name, data type, column width, and source column name.
[Visual Basic] Overloads Public Function Add( _ ByVal parameterName As String, _ ByVal type As SqlDbType, _ ByVal size As Integer, _ ByVal sourceColumn As String _ ) As SqlCeParameter [C#] public SqlCeParameter Add(string parameterName,SqlDbType type,int size,string sourceColumn ); [C++] public: SqlCeParameter* Add(String* parameterName,SqlDbType type,int size,String* sourceColumn ); [JScript] public function Add( parameterName : String, type : SqlDbType, size : int, sourceColumn : String) : SqlCeParameter;
Parameters
- parameterName
The name of the parameter. - type
One of the SqlDbType values. - size
The width of the column. - sourceColumn
The name of the source 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.