JHProperty.SetValue Method (Object, String, Object)

DCSoft.DBUtilityGeneric

JHPropertySetValue Method (Object, String, Object)
设置指定对象指定属性 (Property) 名的值,如果该属性不存在或不可写,或者设置的值无效,则返回

Namespace: DCSoft.Utility.Reflection
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static void SetValue(
	Object obj,
	string propertyName,
	Object value
)

Parameters

obj
Type: SystemObject
将设置其属性 (Property) 值的对象
propertyName
Type: SystemString
属性 (Property) 的名称,区分大小写
value
Type: SystemObject
此属性的新值
See Also