TorrentRootPackageTorrentPackage Property
Gets the TORRENT file metadata package.

Namespace: GroupDocs.Metadata.Formats.Peer2Peer
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public TorrentPackage TorrentPackage { get; }

Property Value

Type: TorrentPackage
The TORRENT file metadata package.
Remarks
Examples
This code sample shows how to update metadata in a TORRENT file.
C#
using (Metadata metadata = new Metadata(Constants.InputTorrent))
{
    var root = metadata.GetRootPackage<TorrentRootPackage>();

    root.TorrentPackage.Comment = "test comment";
    root.TorrentPackage.CreatedBy = "GroupDocs.Metadata";
    root.TorrentPackage.CreationDate = DateTime.Today;

    metadata.Save(Constants.OutputTorrent);
}
See Also