Item

RawDictionaryBasePackage indexer

Gets the Raw tag with the specified id.

public RawTag this[uint tagId] { get; }
Parameter Description
tagId The id of the tag to retrieve.

Return Value

The RawTag with the specified tag id.

Examples

This example demonstrates how to read a specific Raw/EXIF tag by its identifier.

using (Metadata metadata = new Metadata(Constants.RawWithExif))
{
    IExif root = metadata.GetRootPackage() as IExif;
    if (root != null && root.ExifPackage != null)
    {
        RawAsciiTag software = (RawAsciiTag)root.ExifPackage[uint.Software];
        if (software != null)
        {
            Console.WriteLine("Software: {0}", software.Value);
        }
    }
}

See Also