SqlCeParameter 類別
表示 SqlCeCommand 的參數,或是它對 DataSet 資料行的對應。這個類別無法被繼承。
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Public NotInheritable Class SqlCeParameter _
Inherits DbParameter _
Implements ICloneable
'用途
Dim instance As SqlCeParameter
public sealed class SqlCeParameter : DbParameter,
ICloneable
public ref class SqlCeParameter sealed : public DbParameter,
ICloneable
[<SealedAttribute>]
type SqlCeParameter =
class
inherit DbParameter
interface ICloneable
end
public final class SqlCeParameter extends DbParameter implements ICloneable
備註
參數名稱不區分大小寫。
範例
下列範例顯示 SqlCeParameter 的一般用法。
Dim param As New SqlCeParameter("@Description", SqlDbType.NVarChar)
param.Value = "garden hose"
SqlCeParameter param = new SqlCeParameter("@Description", SqlDbType.NVarChar);
param.Value = "garden hose";
繼承階層
System. . :: . .Object
System. . :: . .MarshalByRefObject
System.Data.Common. . :: . .DbParameter
System.Data.SqlServerCe..::..SqlCeParameter
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.