LogRecordSequence.LogStore Property

 

Gets the LogStore that contains the data for this record sequence. This method cannot be inherited.

Namespace:   System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

public LogStore LogStore { get; }

Property Value

Type: System.IO.Log.LogStore

The LogStore that contains the data for this record sequence.

This example shows how to use the LogStore member to add extents.

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

.NET Framework
Available since 3.0
Return to top
Show: