TagsEditor.ID3V2_CommercialFrameAddWithMemoryFile method |
|
Remarks
Adds a new commercial frame (COMR) to the ID3V2 tag.
The modification only happens in memory and not directly into the original sound file: in order to store modifications inside the file you need to call the TagsEditor.ID3V2_SaveChanges method.
For further details about methods related to tags editing refer to the TagsEditorMan class.
For details about the editing of tags see the How to edit tag info in sound files tutorial.
Syntax
[Visual Basic] Public Function ID3V2_CommercialFrameAddWithMemoryFile ( pBuffer() as Byte, nBufferLength as Int32, strPrice as String, strValidUntil as String, strContactUrl as String, nReceivedAs as enumId3v2ReceivedAsType, strSeller as String, strDescription as String ) as enumErrorCodes |
[C#] public string ID3V2_CommercialFrameAddWithMemoryFile ( byte[] pBuffer, Int32 nBufferLength, string strPrice, string strValidUntil, string strContactUrl, enumId3v2ReceivedAsType nReceivedAs, string strSeller, string strDescription ); |
[C++] public: string ID3V2_CommercialFrameAddWithMemoryFile ( unsigned char __gc[] pBuffer, Int32 nBufferLength, string strPrice, string strValidUntil, string strContactUrl, enumId3v2ReceivedAsType nReceivedAs, string strSeller, string strDescription ); |
Parameter |
Description |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
pBuffer |
Input buffer that contains the picture file data to add to the commercial frame. The resulting picture usually represents the seller's logo. |
||||||||||||||||||||||||||||||
nBufferLength |
Length of the buffer expressed in bytes. |
||||||||||||||||||||||||||||||
strPrice |
String containing the price field. |
||||||||||||||||||||||||||||||
strValidUntil |
String containing the "Valid until" field. |
||||||||||||||||||||||||||||||
strContactUrl |
String containing the "Contact URL" field. |
||||||||||||||||||||||||||||||
nReceivedAs |
Value representing the "Received as" field. Supported values are the following:
|
||||||||||||||||||||||||||||||
strSeller |
String containing the "Seller" field. |
||||||||||||||||||||||||||||||
strDescription |
String containing the "Description" field. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful. |