Method ReportAnnotationFile
ReportAnnotationFile(AnnotationDefinition, string)
Report a file-based annotation related to this sensor in this frame.
Declaration
public Annotation ReportAnnotationFile(AnnotationDefinition annotationDefinition, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationDefinition | annotationDefinition | The AnnotationDefinition of this annotation. |
| string | filename | The path to the file containing the annotation data. |
Returns
| Type | Description |
|---|---|
| Annotation | A handle to the reported annotation for reporting annotation-based metrics. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if this method is called during a frame where ShouldCaptureThisFrame is false. |
| ArgumentException | Thrown if the given AnnotationDefinition is invalid. |