本文整理匯總了VB.NET中System.IO.Log.LogRecordSequence.Dispose方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET LogRecordSequence.Dispose方法的具體用法?VB.NET LogRecordSequence.Dispose怎麽用?VB.NET LogRecordSequence.Dispose使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.IO.Log.LogRecordSequence
的用法示例。
在下文中一共展示了LogRecordSequence.Dispose方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: LogRecordSequence
' Create log stream 1.
sequence1 = New LogRecordSequence(logStream1, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite)
' Log Extents are shared between the two streams.
' Add two extents to sequence1.
sequence1.LogStore.Extents.Add("MyExtent0", containerSize)
sequence1.LogStore.Extents.Add("MyExtent1")
' Create log stream 2.
sequence2 = New LogRecordSequence(logStream2, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite)
示例2:
Console.WriteLine()
' Cleanup...
sequence1.Dispose()
sequence2.Dispose()