Below is an example of a call to GetSummaryInfo():

If the get summary flag -i is set:

List<SummaryInfoElement> sinfo sinfo = objFilter.GetSummaryInfo();
if(sinfo != null)
   FileStream fs = new FileStream(m_summaryFile, FileMode.OpenOrCreate, FileAccess.Write);
   StreamWriter sw = new StreamWriter(fs);
   //In case the ANSI is not 1252, using following to get byte array and then convert to correct information.
   // BinaryWriter bw = new BinaryWriter(fs);
   string charSet = objFilter.TargetCharSet;
   foreach (SummaryInfoElement item in sinfo)
  Console.WriteLine( item.ElementName + ". data: " + item.Data );
  if (item.ElementName != null)
    sw.WriteLine(" name: " + item.ElementName );
  if (item.Data != null)
    sw.WriteLine(" data: " + item.Data );

The SummaryInfo class stores the metadata extraction results. After calling the Filter.GetSummaryInfo()method, call the properties provided by each instance of this class to extract metadata. The following describes each property: