C# Класс TagLib.MusePack.File

Наследование: TagLib.NonContainer.File
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
File ( File abstraction ) : System

Constructs and initializes a new instance of for a specified file abstraction with an average read style.

File ( File abstraction, ReadStyle propertiesStyle ) : System

Constructs and initializes a new instance of for a specified file abstraction and specified read style.

File ( string path ) : System

Constructs and initializes a new instance of for a specified path in the local file system with an average read style.

File ( string path, ReadStyle propertiesStyle ) : System

Constructs and initializes a new instance of for a specified path in the local file system and specified read style.

GetTag ( TagTypes type, bool create ) : TagLib.Tag

Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.

If a TagLib.Id3v2.Tag is added to the current instance, it will be placed at the start of the file. On the other hand, TagLib.Id3v1.Tag TagLib.Ape.Tag will be added to the end of the file. All other tag types will be ignored.

Защищенные методы

Метод Описание
ReadEnd ( long end, ReadStyle propertiesStyle ) : void

Reads format specific information at the end of the file.

ReadProperties ( long start, long end, ReadStyle propertiesStyle ) : Properties

Reads the audio properties from the file represented by the current instance.

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

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

Constructs and initializes a new instance of for a specified file abstraction with an average read style.
/// is . ///
public File ( File abstraction ) : System
abstraction File /// A object to use when /// reading from and writing to the file. ///
Результат System

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

Constructs and initializes a new instance of for a specified file abstraction and specified read style.
/// is . ///
public File ( File abstraction, ReadStyle propertiesStyle ) : System
abstraction File /// A object to use when /// reading from and writing to the file. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
Результат System

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

Constructs and initializes a new instance of for a specified path in the local file system with an average read style.
/// is . ///
public File ( string path ) : System
path string /// A object containing the path of the /// file to use in the new instance. ///
Результат System

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

Constructs and initializes a new instance of for a specified path in the local file system and specified read style.
/// is . ///
public File ( string path, ReadStyle propertiesStyle ) : System
path string /// A object containing the path of the /// file to use in the new instance. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
Результат System

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

Gets a tag of a specified type from the current instance, optionally creating a new tag if possible.
If a TagLib.Id3v2.Tag is added to the current instance, it will be placed at the start of the file. On the other hand, TagLib.Id3v1.Tag TagLib.Ape.Tag will be added to the end of the file. All other tag types will be ignored.
public GetTag ( TagTypes type, bool create ) : TagLib.Tag
type TagTypes /// A value indicating the /// type of tag to read. ///
create bool /// A value specifying whether or not to /// try and create the tag if one is not found. ///
Результат TagLib.Tag

ReadEnd() защищенный Метод

Reads format specific information at the end of the file.
protected ReadEnd ( long end, ReadStyle propertiesStyle ) : void
end long /// A value containing the seek position /// at which the media data ends and the tags begin. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
Результат void

ReadProperties() защищенный Метод

Reads the audio properties from the file represented by the current instance.
protected ReadProperties ( long start, long end, ReadStyle propertiesStyle ) : Properties
start long /// A value containing the seek position /// at which the tags end and the media data begins. ///
end long /// A value containing the seek position /// at which the media data ends and the tags begin. ///
propertiesStyle ReadStyle /// A value specifying at what level /// of accuracy to read the media properties, or to ignore the properties. ///
Результат Properties