LogRecordSequence.LogStore Vlastnost

Definice

Získá , LogStore který obsahuje data pro tuto posloupnost záznamů. Tuto metodu nelze dědit.

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

Hodnota vlastnosti

Obsahuje LogStore data pro tuto posloupnost záznamů.

Příklady

Tento příklad ukazuje, jak použít člen k LogStore přidání rozsahů.

// 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)

Platí pro