Gets the value of a matching field.
Syntax

[C#]

string Value(string field);

[Visual Basic]

Function Value(field As String) As String
Params
Name Description
field The field to be queried.
return The value of a matching field.
Notes

This function returns the text value of the first matching field found. If no matching field is found an empty string is returned.

For details of the way in which IPTC items can be referred to by name see Add.

See Also

Item[Int32]

Item[String]

Values

Example

[C#]

Metadata metadata = new Metadata(Server.MapPath("rez/iptc.tif")); 
Response.Write(metadata.Iptc.Value("Headline"));
Response.Write("<br>");
Response.Write(metadata.Iptc.Value("Caption"));
Response.Write("<br>");


This example writes the Headline and Caption from a TIFF file. No error will be raised if the IPTC data does not contain a headline or caption.