共用方式為


SqlCeParameterCollection.AddWithValue Method

Adds a new SqlCeParameter to the SqlCeParameterCollection and sets its value.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Syntax

'Declaration
Public Function AddWithValue ( _
    parameterName As String, _
    value As Object _
) As SqlCeParameter
'Usage
Dim instance As SqlCeParameterCollection
Dim parameterName As String
Dim value As Object
Dim returnValue As SqlCeParameter

returnValue = instance.AddWithValue(parameterName, value)
public SqlCeParameter AddWithValue (
    string parameterName,
    Object value
)
public:
SqlCeParameter^ AddWithValue (
    String^ parameterName, 
    Object^ value
)
public SqlCeParameter AddWithValue (
    String parameterName, 
    Object value
)
public function AddWithValue (
    parameterName : String, 
    value : Object
) : SqlCeParameter
Not applicable.

Parameters

  • value
    Value of the parameterName.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0

See Also

Reference

SqlCeParameterCollection Class
SqlCeParameterCollection Members
System.Data.SqlServerCe Namespace