AnnotationCollection.Insert メソッド (Int32, String, String)
指定した名前および値の Annotation を作成し、コレクション内の指定したインデックスに挿入します。
名前空間: Microsoft.AnalysisServices
アセンブリ: Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)
構文
'宣言
Public Function Insert ( _
index As Integer, _
name As String, _
value As String _
) As Annotation
'使用
Dim instance As AnnotationCollection
Dim index As Integer
Dim name As String
Dim value As String
Dim returnValue As Annotation
returnValue = instance.Insert(index, name, _
value)
public Annotation Insert(
int index,
string name,
string value
)
public:
Annotation^ Insert(
int index,
String^ name,
String^ value
)
member Insert :
index:int *
name:string *
value:string -> Annotation
public function Insert(
index : int,
name : String,
value : String
) : Annotation
パラメーター
- index
型: System.Int32
新しい Annotation の挿入先である、0 から始まるインデックスです。
- name
型: System.String
挿入する Annotation の名前です。
- value
型: System.String
挿入する Annotation の値です。
戻り値
型: Microsoft.AnalysisServices.Annotation
コレクションに挿入した Annotation です。
例外
例外 | 条件 |
---|---|
ArgumentOutOfRangeException | index に 0 より小さい値が指定されています。 -または- index に [H:Microsoft.AnalysisServices.ModelComponentCollection.Count] 以上の値が指定されています。 |