共用方式為


LogRecordSequence.LogStore 屬性

定義

取得 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)

適用於