LoginViewDesigner.TemplateGroups 属性
定义
获取用于关联控件字段的模板组集合。Gets a collection of template groups for the fields of the associated control.
public:
virtual property System::Web::UI::Design::TemplateGroupCollection ^ TemplateGroups { System::Web::UI::Design::TemplateGroupCollection ^ get(); };
public override System.Web.UI.Design.TemplateGroupCollection TemplateGroups { get; }
member this.TemplateGroups : System.Web.UI.Design.TemplateGroupCollection
Public Overrides ReadOnly Property TemplateGroups As TemplateGroupCollection
属性值
一个 TemplateGroupCollection,LoginView 控件中每个模板都有一个元素包含在其中。A TemplateGroupCollection containing an element for each template in the LoginView control.
注解
TemplateGroups属性 TemplateGroupCollection 从 TemplateGroups 基属性获取对象,然后添加 TemplateGroup 对象,这些对象包含匿名模板的单个 TemplateDefinition 对象 (该对象对应于未登录的用户) 、登录模板以及 RoleGroup 关联控件的集合中的每个元素 RoleGroups LoginView TemplateGroupCollection 。The TemplateGroups property gets a TemplateGroupCollection object from the TemplateGroups base property, and then adds TemplateGroup objects that contain a single TemplateDefinition object for the anonymous template (which corresponds to no user logged on), for the logged-on template, and for each RoleGroup element in the RoleGroups collection of the associated LoginView control to the TemplateGroupCollection. 将 TemplateGroups 此返回 TemplateGroupCollection 到调用方。The TemplateGroups returns this TemplateGroupCollection to the caller.