LogRecordSequence.LogStore Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the LogStore that contains the data for this record sequence. This method cannot be inherited.
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
Property Value
The LogStore that contains the data for this record sequence.
Examples
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);
' 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)
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.