Open this page in the API Guide

IAnnotationService.CreateAnnotation Method (Guid, Guid, String, IEnumerable<SingleNumberValue>, IEnumerable<SingleMemberValue>, IEnumerable<ParameterValue>, Boolean)

Creates a textual annotation.

Namespace:  Dundas.BI.Data.Annotations
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
Annotation CreateAnnotation(
	Guid viewId,
	Guid metricSetId,
	string annotationText,
	IEnumerable<SingleNumberValue> measureValues,
	IEnumerable<SingleMemberValue> renderedMembers,
	IEnumerable<ParameterValue> parameterValues,
	bool isPublic
)

Parameters

viewId
Type: System.Guid
The view ID.
metricSetId
Type: System.Guid
The metric set ID.
annotationText
Type: System.String
The annotation text.
measureValues
Type: System.Collections.Generic.IEnumerable<SingleNumberValue>
The coordinates measure values.
renderedMembers
Type: System.Collections.Generic.IEnumerable<SingleMemberValue>
The coordinates rendered members.
parameterValues
Type: System.Collections.Generic.IEnumerable<ParameterValue>
The coordinates parameter values.
isPublic
Type: System.Boolean
If set to true, annotation will be visible to everyone, otherwise only to the user who created it. .

Return Value

Type: Annotation
The annotation.
Exceptions
ExceptionCondition
ArgumentException

viewId is Empty

-or-

metricSetId is Empty.

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