Click or drag to resize

ID3FileUpsertFrame Method

Updates or inserts a frame with raw byte array data. The method can be used to create non text or url frames that have unusual contents. The ID3DataBuilder class can be used to more easily build a buffer out of data segments.

Namespace: Orthogonal.Common.Basic.ID3
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 2024-04-15 18:00 GMT+10.f27da1471008deaf16b803c17e24a5955690aef1
Syntax
C#
public ID3Frame UpsertFrame(
	string id,
	byte flag1,
	byte flag2,
	byte[] data,
	bool append = false
)

Parameters

id  String
The ID of the frame to insert or replace.
flag1  Byte
Frame flag-1 byte.
flag2  Byte
Frame flag-2 byte
data  Byte
The raw data for the new frame.
append  Boolean  (Optional)
True to always append the frame to the collection, False to replace any existing frame with the same ID. Note that only a small number of frame IDs allow duplicates.

Return Value

ID3Frame
A reference to the added or updated frame.
See Also