Count
WarningInfoCollection.Count property
Gets the number of elements contained in the collection.
public int Count { get; }
Examples
Shows how to get warnings about unsupported formats.
WarningInfoCollection warnings = new WarningInfoCollection();
Document doc = new Document(MyDir + "FB2 document.fb2", new LoadOptions { WarningCallback = warnings });
Assert.That(warnings[0].Description, Is.EqualTo("The original file load format is FB2, which is not supported by Aspose.Words. The file is loaded as an XML document."));
Assert.That(warnings.Count, Is.EqualTo(1));
See Also
- class WarningInfoCollection
- namespace Aspose.Words
- assembly Aspose.Words