TemplateGroupCollection.AddRange(TemplateGroupCollection) 方法

定義

將現有 TemplateGroupCollection 物件中的樣板群組加入至目前的 TemplateGroupCollection 物件。

public:
 void AddRange(System::Web::UI::Design::TemplateGroupCollection ^ groups);
public void AddRange (System.Web.UI.Design.TemplateGroupCollection groups);
member this.AddRange : System.Web.UI.Design.TemplateGroupCollection -> unit
Public Sub AddRange (groups As TemplateGroupCollection)

參數

groups
TemplateGroupCollection

TemplateGroupCollection,包含要加入至集合的群組。

例外狀況

groupsnull

備註

方法會將 AddRange 多個群組新增至集合。 若要將單 TemplateGroup 一物件加入至集合結尾,請使用 Add 方法。 若要在特定 TemplateGroup 索引位置將 物件新增至集合,請使用 Insert 方法。

適用於

另請參閱