现在的位置: 首页 > 综合 > 正文

ParseChildren(true)

2012年01月23日 ⁄ 综合 ⁄ 共 341字 ⁄ 字号 评论关闭

将子标签解释为控件的属性

 

MSDN解释

ParseChildrenAttribute 类允许您以 ParseChildrenAttribute 元数据属性标记服务器控件来为自定义服务器控件指定分析逻辑。

以元数据属性 (Attribute) ParseChildren(true) 标记服务器控件将指示分析器把包含在服务器控件标记内的元素解释为属性 (Property)。在这种情况下,ChildrenAsProperties 属性为 true

以元数据属性 (Attribute) ParseChildren(true,"<Default Property>") 标记服务器控件将把 DefaultProperty 属性 (Property) 设置为传递到该属性 (Attribute) 的属性 (Property) 名称。

 

抱歉!评论已关闭.