Partilhar via


Construtor SqlCeParameter (String, SqlDbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object)

Inicializa uma nova instância da classe SqlCeParameter com o nome do parâmetro, o tipo e o comprimento dos dados, a direção do parâmetro e outras propriedades. O SQL Server Compact 3.5 dá suporte apenas a parâmetros de entrada.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (em System.Data.SqlServerCe.dll)

Sintaxe

'Declaração
Public Sub New ( _
    parameterName As String, _
    dbType As SqlDbType, _
    size As Integer, _
    direction As ParameterDirection, _
    isNullable As Boolean, _
    precision As Byte, _
    scale As Byte, _
    sourceColumn As String, _
    sourceVersion As DataRowVersion, _
    value As Object _
)
'Uso
Dim parameterName As String
Dim dbType As SqlDbType
Dim size As Integer
Dim direction As ParameterDirection
Dim isNullable As Boolean
Dim precision As Byte
Dim scale As Byte
Dim sourceColumn As String
Dim sourceVersion As DataRowVersion
Dim value As Object

Dim instance As New SqlCeParameter(parameterName, _
    dbType, size, direction, isNullable, _
    precision, scale, sourceColumn, sourceVersion, _
    value)
public SqlCeParameter(
    string parameterName,
    SqlDbType dbType,
    int size,
    ParameterDirection direction,
    bool isNullable,
    byte precision,
    byte scale,
    string sourceColumn,
    DataRowVersion sourceVersion,
    Object value
)
public:
SqlCeParameter(
    String^ parameterName, 
    SqlDbType dbType, 
    int size, 
    ParameterDirection direction, 
    bool isNullable, 
    unsigned char precision, 
    unsigned char scale, 
    String^ sourceColumn, 
    DataRowVersion sourceVersion, 
    Object^ value
)
new : 
        parameterName:string * 
        dbType:SqlDbType * 
        size:int * 
        direction:ParameterDirection * 
        isNullable:bool * 
        precision:byte * 
        scale:byte * 
        sourceColumn:string * 
        sourceVersion:DataRowVersion * 
        value:Object -> SqlCeParameter
public function SqlCeParameter(
    parameterName : String, 
    dbType : SqlDbType, 
    size : int, 
    direction : ParameterDirection, 
    isNullable : boolean, 
    precision : byte, 
    scale : byte, 
    sourceColumn : String, 
    sourceVersion : DataRowVersion, 
    value : Object
)

Parâmetros

  • precision
    Tipo: System. . :: . .Byte
    O número total de dígitos à esquerda e à direita da vírgula decimal para o qual Value é resolvido.

Consulte também

Referência

SqlCeParameter Classe

Membros SqlCeParameter

Sobrecarga SqlCeParameter

Namespace System.Data.SqlServerCe