LogRecordSequence.LogStore 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取包含此记录序列数据的 LogStore。 无法继承此方法。
public:
property System::IO::Log::LogStore ^ LogStore { System::IO::Log::LogStore ^ get(); };
public System.IO.Log.LogStore LogStore { get; }
member this.LogStore : System.IO.Log.LogStore
Public ReadOnly Property LogStore As LogStore
属性值
包含此记录序列数据的 LogStore。
示例
此示例演示如何使用 LogStore 成员来添加范围。
// 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);
' 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)