Schema for Attribute and its bind PropertyInfo/FieldInfo object target.
BindProperty
00 Remarks
(使用这个对象将公共的域或者属性的读写统一起来)
Type Parameters
| Name | Description |
|---|---|
T |
01 Syntax
Microsoft.VisualBasic.ComponentModel.DataSourceModel.SchemaMaps.BindProperty`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| SetValue | 1 | Sets the property value of a specified object with optional index values for index properties. |
| GetValue | 1 | Returns the property value of a specified object with optional index values for indexed properties. |
| ToString | 1 | Display this schema maps in Visualbasic style. |
| WriteScriptValue | 1 | |
| FromSchemaTable | 1 |
03 Properties
04 Fields
05 Members
SetValue(
Object, Object)Sets the property value of a specified object with optional index values for index properties. (这个设置值的函数只适用于Class类型,对于Structure类型而言,则无法正常的工作)
Parameters
| Name | Type | Description |
|---|---|---|
obj | Object | The object whose property value will be set. |
value | Object | The new property value. |
GetValue(
Object)Returns the property value of a specified object with optional index values for indexed properties.
Parameters
| Name | Type | Description |
|---|---|---|
x | Object | The object whose property value will be returned. |
Returns
The property value of the specified object.
ToString
Display this schema maps in Visualbasic style.
Identity
The map name or the MemberInfo.Name. (这个属性会首先查找标记的自定义属性的名称结果,如果不存在才会使用属性或者字段的反射成员名称)
IsNull
Is this map data is null on its attribute or property data?
field
The flag for this field binding.
field
name
WriteScriptValue(
Object, String)FromSchemaTable(
KeyValuePair(Of T, PropertyInfo))