类库说明文档
![]() | JHWebControlGetValue Method (Control, String) |
获取控件指定属性的值,异常直接抛出
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static Object GetValue( Control control, string propertyName )
Parameters
- control
- Type: System.Web.UIControl
Web 服务器控件 - propertyName
- Type: SystemString
属性名称,不区分大小写
Return Value
Type: Object返回指定属性的值

属性不存在或者没有 get 访问器,则读取 Attributes 中的值
