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 方法。

适用于

另请参阅