EmbeddedMailObjectsCollection.Insert(Int32, EmbeddedMailObject) 方法

定義

EmbeddedMailObject 插入 EmbeddedMailObjectsCollection 物件中指定的索引位置。

public:
 void Insert(int index, System::Web::UI::WebControls::EmbeddedMailObject ^ value);
public void Insert (int index, System.Web.UI.WebControls.EmbeddedMailObject value);
member this.Insert : int * System.Web.UI.WebControls.EmbeddedMailObject -> unit
Public Sub Insert (index As Integer, value As EmbeddedMailObject)

參數

index
Int32

整數值,表示集合中要插入 EmbeddedMailObject 的索引位置。

例外狀況

所指定的 index 超出集合範圍。

指定的 valuenull

備註

如果 index 為 0, value 則會新增至 的 EmbeddedMailObjectsCollection 開頭。 如果 index 等於 中的 EmbeddedMailObjectsCollection 專案數, value 則會附加至結尾。

適用於

另請參閱