IAnnotationServiceCreateAnnotation(Guid, Guid, AnnotationCreationOptionsWithCoordinates) Method

Creates a textual annotation.

Namespace: Dundas.BI.Data.Annotations
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
Annotation CreateAnnotation(
	Guid viewId,
	Guid metricSetId,
	AnnotationCreationOptionsWithCoordinates options
)

Parameters

viewId  Guid
The view ID.
metricSetId  Guid
The metric set ID.
options  AnnotationCreationOptionsWithCoordinates
The annotation creation options.

Return Value

Annotation
The annotation.
Exceptions
ExceptionCondition
ArgumentException

viewId is Empty

-or-

metricSetId is Empty.

ArgumentNullExceptionoptions is .
NotFoundExceptionThe metric set with the specified ID does not exist.
InvalidOperationExceptionThe specified metric set is inactive.
NoPrivilegeException

The caller does not have the Read privilege on the specified metric set.

-or-

The caller does not have the Execute privilege on the underlying analysis structure.

-or-

The caller does not have the Note privilege.

InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also