共用方式為


TraceCollection.Insert 方法

定義

多載

Insert(Int32, String, String)

使用指定的名稱和識別碼建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

Insert(Int32, String)

使用指定的名稱建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

Insert(Int32, Trace)

將指定的 Trace 插入集合中指定的索引位置。

Insert(Int32)

使用產生的唯一名稱和識別碼,建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

Insert(Int32, String, String)

使用指定的名稱和識別碼建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

public Microsoft.AnalysisServices.Tabular.Trace Insert (int index, string name, string id);
override this.Insert : int * string * string -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Insert (index As Integer, name As String, id As String) As Trace

參數

index
Int32

以零為基底的索引,這是插入 Trace 之處。

name
String

Trace 物件的名稱。

id
String

Trace 物件的識別碼。

傳回

新建立的 Trace 物件。

例外狀況

指定的索引不是有效的值 (小於零或大於項目總數)。

  • 指定的名稱在集合中無效。
  • 指定的識別碼在集合中無效。

適用於

Insert(Int32, String)

使用指定的名稱建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

public Microsoft.AnalysisServices.Tabular.Trace Insert (int index, string name);
override this.Insert : int * string -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Insert (index As Integer, name As String) As Trace

參數

index
Int32

以零為基底的索引,這是插入 Trace 之處。

name
String

Trace 物件的名稱。 它在集合中必須是唯一的。

傳回

新建立的 Trace 物件。

例外狀況

指定的索引不是有效的值 (小於零或大於項目總數)。

指定的名稱在集合中無效。

備註

的識別碼 Trace 會根據指定的 Name 產生。

適用於

Insert(Int32, Trace)

將指定的 Trace 插入集合中指定的索引位置。

public void Insert (int index, Microsoft.AnalysisServices.Tabular.Trace item);
override this.Insert : int * Microsoft.AnalysisServices.Tabular.Trace -> unit
Public Sub Insert (index As Integer, item As Trace)

參數

index
Int32

以零為基底的索引,這是插入 Trace 之處。

item
Trace

要插入的 Trace

例外狀況

指定的索引不是有效的值 (小於零或大於項目總數)。

  • 指定的項目為 Null 參考 (Visual Basic 中的 Nothing)。
  • 指定的項目已存在於集合中。
  • 指定的 Trace 識別碼在集合中無效。
  • 指定的名稱 Trace 在集合中無效。
  • 指定 Trace 之 的相容性層級在集合中無效。

適用於

Insert(Int32)

使用產生的唯一名稱和識別碼,建立新的 Trace 物件,然後將它插入集合中指定的索引處,並傳回新建立的 Trace。

public Microsoft.AnalysisServices.Tabular.Trace Insert (int index);
override this.Insert : int -> Microsoft.AnalysisServices.Tabular.Trace
Public Function Insert (index As Integer) As Trace

參數

index
Int32

以零為基底的索引,這是插入 Trace 之處。

傳回

新建立的 Trace 物件。

例外狀況

指定的索引不是有效的值 (小於零或大於項目總數)。

適用於