Property Excerpt
Excerpt
Gets the retrieved text excerpt.
public string Excerpt { get; }
Property Value
Examples
foreach (var reference in result.SourceReferences)
{
// Display a preview of the matched passage
string preview = reference.Excerpt.Length > 100
? reference.Excerpt.Substring(0, 100) + "..."
: reference.Excerpt;
Console.WriteLine($" Excerpt: {preview}");
}