SqlCeParameterCollection.Add Method (String, SqlDbType)
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 parameter name and data type.
[Visual Basic] Overloads Public Function Add( _ ByVal parameterName As String, _ ByVal type As SqlDbType _ ) As SqlCeParameter [C#] public SqlCeParameter Add(string parameterName,SqlDbType type ); [C++] public: SqlCeParameter* Add(String* parameterName,SqlDbType type ); [JScript] public function Add( parameterName : String, type : SqlDbType) : SqlCeParameter;
Parameters
- parameterName
The name of the parameter. - type
One of the SqlDbType values.
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.