JHWebControl.GetValue Method (Control, String)

DCSoft.DBUtilityGeneric

JHWebControlGetValue Method (Control, String)
获取控件指定属性的值,异常直接抛出

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static Object GetValue(
	Control control,
	string propertyName
)

Parameters

control
Type: System.Web.UIControl
Web 服务器控件
propertyName
Type: SystemString
属性名称,不区分大小写

Return Value

Type: Object
返回指定属性的值
Remarks
属性不存在或者没有 get 访问器,则读取 Attributes 中的值
See Also