ApePackage
Contents
[
Hide
]
ApePackage class
Represents an APE v2 metadata package. Please find more information at http://wiki.hydrogenaud.io/index.php?title=APE_key.
public sealed class ApePackage : CustomPackage
Properties
Name | Description |
---|---|
Abstract { get; } | Gets the abstract link. |
Album { get; } | Gets the album. |
Artist { get; } | Gets the artist. |
Bibliography { get; } | Gets the bibliography. |
Comment { get; } | Gets the comment. |
Composer { get; } | Gets the composer. |
Conductor { get; } | Gets the conductor. |
Copyright { get; } | Gets the copyright. |
Count { get; } | Gets the number of metadata properties. |
DebutAlbum { get; } | Gets the debut album. |
File { get; } | Gets the file. |
Genre { get; } | Gets the genre. |
Isbn { get; } | Gets the ISBN number with check digit. See more: https://en.wikipedia.org/wiki/International_Standard_Book_Number. |
Isrc { get; } | Gets the International Standard Recording Number. |
Item { get; } | Gets the MetadataProperty with the specified name. |
Keys { get; } | Gets a collection of the metadata property names. |
Language { get; } | Gets the language. |
MetadataType { get; } | Gets the metadata type. |
PropertyDescriptors { get; } | Gets a collection of descriptors that contain information about properties accessible through the GroupDocs.Metadata search engine. |
PublicationRight { get; } | Gets the publication right. |
Publisher { get; } | Gets the publisher. |
RecordLocation { get; } | Gets the record location. |
Subtitle { get; } | Gets the subtitle. |
Title { get; } | Gets the title. |
Track { get; } | Gets the track number. |
Methods
Name | Description |
---|---|
virtual AddProperties(Func<MetadataProperty, bool>, PropertyValue) | Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. |
Contains(string) | Determines whether the package contains a metadata property with the specified name. |
virtual FindProperties(Func<MetadataProperty, bool>) | Finds the metadata properties satisfying the specified predicate. The search is recursive so it affects all nested packages as well. |
GetEnumerator() | Returns an enumerator that iterates through the collection. |
virtual RemoveProperties(Func<MetadataProperty, bool>) | Removes metadata properties satisfying the specified predicate. |
virtual Sanitize() | Removes writable metadata properties from the package. The operation is recursive so it affects all nested packages as well. |
virtual SetProperties(Func<MetadataProperty, bool>, PropertyValue) | Sets known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. This method is a combination of AddProperties and UpdateProperties . If an existing property satisfies the predicate its value is updated. If there is a known property missing in the package that satisfies the predicate it is added to the package. |
virtual UpdateProperties(Func<MetadataProperty, bool>, PropertyValue) | Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. |
Remarks
Learn more
Examples
This example demonstrates how to read the APEv2 tag in an MP3 file.
using (Metadata metadata = new Metadata(Constants.MP3WithApe))
{
var root = metadata.GetRootPackage<MP3RootPackage>();
if (root.ApeV2 != null)
{
Console.WriteLine(root.ApeV2.Album);
Console.WriteLine(root.ApeV2.Title);
Console.WriteLine(root.ApeV2.Artist);
Console.WriteLine(root.ApeV2.Composer);
Console.WriteLine(root.ApeV2.Copyright);
Console.WriteLine(root.ApeV2.Genre);
Console.WriteLine(root.ApeV2.Language);
// ...
}
}
See Also
- class CustomPackage
- namespace GroupDocs.Metadata.Formats.Audio
- assembly GroupDocs.Metadata