TorrentPackage

TorrentRootPackage.TorrentPackage property

Mendapat paket metadata file TORRENT.

public TorrentPackage TorrentPackage { get; }

Nilai properti

Paket metadata file TORRENT.

Perkataan

Belajarlah lagi

Contoh

Contoh kode ini menunjukkan cara memperbarui metadata dalam file TORRENT.

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

Lihat juga