共用方式為


SqlCeDataReader.Dispose 方法 (Boolean)

釋放這個 SqlCeDataReader 所使用的 Unmanaged 資源,並且選擇性地釋放 Managed 資源。

命名空間:  System.Data.SqlServerCe
組件:  System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)

語法

'宣告
<SecurityCriticalAttribute> _
<SecurityTreatAsSafeAttribute> _
Protected Overrides Sub Dispose ( _
    disposing As Boolean _
)
'用途
Dim disposing As Boolean

Me.Dispose(disposing)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
protected override void Dispose(
    bool disposing
)
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
protected:
virtual void Dispose(
    bool disposing
) override
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
abstract Dispose : 
        disposing:bool -> unit 
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
override Dispose : 
        disposing:bool -> unit 
protected override function Dispose(
    disposing : boolean
)

參數

  • disposing
    型別:System.Boolean
    指定是否要釋放 Managed 資源。

請參閱

參考

SqlCeDataReader 類別

Dispose 多載

System.Data.SqlServerCe 命名空間