C# Класс TagLib.Tag

This abstract class provides generic access to standard tag features. All tag types will extend this class.
Because not every tag type supports the same features, it may be useful to check that the value is stored by re-reading the property after it is stored.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Duplicate void
FirstInGroup string
IsNullOrLikeEmpty bool
JoinGroup string

Открытые методы

Метод Описание
Clear ( ) : void

Clears the values stored in the current instance.

The clearing procedure is format specific and should clear all values.

CopyTo ( Tag target, bool overwrite ) : void

Copies the values from the current instance to another TagLib.Tag, optionally overwriting existing values.

This method only copies the most basic values when copying between different tag formats, however, if target is of the same type as the current instance, more advanced copying may be done. For example, TagLib.Id3v2.Tag will copy all of its frames to another tag.

Приватные методы

Метод Описание
Duplicate ( Tag source, Tag target, bool overwrite ) : void
FirstInGroup ( string group ) : string

Gets the first string in an array.

IsNullOrLikeEmpty ( string value ) : bool

Checks if a string is or contains only whitespace characters.

JoinGroup ( string group ) : string

Joins a array of strings into a single, semicolon separated, string.

Описание методов

Clear() публичный абстрактный Метод

Clears the values stored in the current instance.
The clearing procedure is format specific and should clear all values.
public abstract Clear ( ) : void
Результат void

CopyTo() публичный Метод

Copies the values from the current instance to another TagLib.Tag, optionally overwriting existing values.

This method only copies the most basic values when copying between different tag formats, however, if target is of the same type as the current instance, more advanced copying may be done. For example, TagLib.Id3v2.Tag will copy all of its frames to another tag.

/// is . ///
public CopyTo ( Tag target, bool overwrite ) : void
target Tag /// A object containing the target tag to /// copy values to. ///
overwrite bool /// A specifying whether or not to copy /// values over existing one. ///
Результат void