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)