释放由 DbSyncBatchInfo 使用的非托管资源,还可以选择释放托管资源。
此方法不符合 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,则既释放托管资源也释放非托管资源;如果为 false,则仅释放非托管资源。
请参阅
参考
DbSyncBatchInfo 类
DbSyncBatchInfo 成员
Microsoft.Synchronization.Data 命名空间