TemplateGroupCollection.AddRange(TemplateGroupCollection) TemplateGroupCollection.AddRange(TemplateGroupCollection) TemplateGroupCollection.AddRange(TemplateGroupCollection) TemplateGroupCollection.AddRange(TemplateGroupCollection) Method

定義

將現有 TemplateGroupCollection 物件中的樣板群組加入至目前的 TemplateGroupCollection 物件。Adds the template groups in an existing TemplateGroupCollection object to the current TemplateGroupCollection object.

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 TemplateGroupCollection TemplateGroupCollection

TemplateGroupCollection,包含要加入至集合的群組。A TemplateGroupCollection that contains the groups to add to the collection.

例外狀況

備註

AddRange方法會將多個群組加入至集合。The AddRange method adds multiple groups to the collection. 若要新增單一TemplateGroup物件,以收集、 使用結尾Add方法。To add a single TemplateGroup object to the end of the collection, use the Add method. 若要新增TemplateGroup物件集合中特定索引位置,使用Insert方法。To add a TemplateGroup object to the collection at a specific index location, use the Insert method.

適用於

另請參閱