MediaTagWriteOptions Class

Controls how tags are written. The defaults match the behaviour of the MediaFile.WriteTags overloads that do not take options.

public sealed class MediaTagWriteOptions

Constructors

NameDescription
MediaTagWriteOptions()

MediaTagWriteOptions()

MediaTagWriteOptions.cs
public MediaTagWriteOptions()

No documentation is available.

Properties

NameDescription
Id3v2PaddingSizeGets or sets the number of padding bytes appended to a written ID3v2 tag. The default is 1024.
WriteId3v1TagGets or sets a value indicating whether an ID3v1 tag is appended to MP3 files. The default is true.

Id3v2PaddingSize

MediaTagWriteOptions.cs

Gets or sets the number of padding bytes appended to a written ID3v2 tag. The default is 1024.

public int Id3v2PaddingSize { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is negative.

Remarks

Padding lets another tagger grow the tag later without rewriting the whole file. Set it to 0 to produce the smallest possible tag.

Gets or sets a value indicating whether an ID3v1 tag is appended to MP3 files. The default is true.

public bool WriteId3v1Tag { get; set; }

Property value

bool

Remarks

An ID3v1 tag stores at most 30 Latin-1 characters per field, so it silently truncates values that an ID3v2 tag represents in full. It is written by default because some players read nothing else.