using Microsoft.Azure.EventHubs; long position = 3424; // position in a data stream CheckpointTag checkpointTag = CheckpointTag.FromPosition(new EventData(new byte[] { }), position);
using Microsoft.Azure.EventHubs; string partitionId = "0"; // partition ID long sequenceNumber = 125; // sequence number CheckpointTag checkpointTag = CheckpointTag.FromPosition(new EventData(new byte[] { }), partitionId, sequenceNumber);In this example, the FromPosition method is used to create a checkpoint tag from a partition ID and a sequence number. This method is commonly used when processing data from an event hub. The CheckpointTag class is part of the Microsoft.Azure.EventHubs namespace, which is a package library that provides event hub functionality for .NET applications.