DbSyncBatchInfo.Dispose 方法 (Boolean)
釋放 DbSyncBatchInfo 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。
此方法與 CLS 不相容。
命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)
語法
'宣告
<SuppressMessageAttribute("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies")> _
Protected Overridable Sub Dispose ( _
cleanup As Boolean _
)
'用途
Dim cleanup As Boolean
Me.Dispose(cleanup)
[SuppressMessageAttribute("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies")]
protected virtual void Dispose (
bool cleanup
)
[SuppressMessageAttribute(L"Microsoft.MSInternal", L"CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies")]
protected:
virtual void Dispose (
bool cleanup
)
/** @attribute SuppressMessageAttribute("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies") */
protected void Dispose (
boolean cleanup
)
SuppressMessageAttribute("Microsoft.MSInternal", "CA908:AvoidTypesThatRequireJitCompilationInPrecompiledAssemblies")
protected function Dispose (
cleanup : boolean
)
參數
- cleanup
true 表示同時釋放 Managed 和 Unmanaged 資源,false 表示只釋放 Unmanaged 資源。
請參閱
參考
DbSyncBatchInfo 類別
DbSyncBatchInfo 成員
Microsoft.Synchronization.Data 命名空間