Method ReportAnnotationValues
ReportAnnotationValues<T>(AnnotationDefinition, T[])
Report a value-based annotation related to this sensor in this frame.
Declaration
public Annotation ReportAnnotationValues<T>(AnnotationDefinition annotationDefinition, T[] values)
Parameters
Type | Name | Description |
---|---|---|
AnnotationDefinition | annotationDefinition | The AnnotationDefinition of this annotation. |
T[] | values | The annotation data, which will be automatically converted to json. |
Returns
Type | Description |
---|---|
Annotation | Returns a handle to the reported annotation for reporting annotation-based metrics. |
Type Parameters
Name | Description |
---|---|
T | The type of the values array. |
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. |