TorrentPackage
TorrentRootPackage.TorrentPackage property
Gets the TORRENT file metadata package.
public TorrentPackage TorrentPackage { get; }
Property Value
The TORRENT file metadata package.
Remarks
Learn more
Examples
This code sample shows how to update metadata in a TORRENT file.
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
- class TorrentPackage
- class TorrentRootPackage
- namespace GroupDocs.Metadata.Formats.Peer2Peer
- assembly GroupDocs.Metadata