AnnotationCollection.Insert Method (Int32, Annotation)
Applies To: SQL Server (starting with 2016)
Inserts an Annotation into the collection at the specified index.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)
Syntax
public void Insert(
int index,
Annotation item
)
public:
void Insert(
int index,
Annotation^ item
)
member Insert :
index:int *
item:Annotation -> unit
Public Sub Insert (
index As Integer,
item As Annotation
)
Parameters
index
Type: System.Int32The zero-based index at which the new Annotation will be inserted.
item
Type: Microsoft.AnalysisServices.AnnotationThe Annotation to be inserted.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is less than zero.-or-index is equal to or greater than Count. |
See Also
Insert Overload
AnnotationCollection Class
Microsoft.AnalysisServices Namespace
Return to top