点击或拖拽改变大小

BindingsAddS, T 方法 (String, String, Byte, BindingMode, FuncS, T, FuncT, S, ActionBinding, Object, Exception, ActionBinding, Object, Exception)

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <summary> 文档]

命名空间:  CPF
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
public Binding Add<S, T>(
	string propertyName,
	string sourcePropertyName,
	byte sourceElementLayer,
	BindingMode bindingMode = BindingMode.OneWay,
	Func<S, T> convert = null,
	Func<T, S> convertBack = null,
	Action<Binding, Object, Exception> SourceToTargetError = null,
	Action<Binding, Object, Exception> TargetToSourceError = null
)

参数

propertyName
类型:SystemString

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="propertyName"/> 文档]

sourcePropertyName
类型:SystemString

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="sourcePropertyName"/> 文档]

sourceElementLayer
类型:SystemByte

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="sourceElementLayer"/> 文档]

bindingMode (Optional)
类型:CPFBindingMode

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="bindingMode"/> 文档]

convert (Optional)
类型:SystemFuncS, T

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="convert"/> 文档]

convertBack (Optional)
类型:SystemFuncT, S

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="convertBack"/> 文档]

SourceToTargetError (Optional)
类型:SystemActionBinding, Object, Exception

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="SourceToTargetError"/> 文档]

TargetToSourceError (Optional)
类型:SystemActionBinding, Object, Exception

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <param name="TargetToSourceError"/> 文档]

类型参数

S

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <typeparam name="S"/> 文档]

T

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <typeparam name="T"/> 文档]

返回值

类型:Binding

[缺少 "M:CPF.Bindings.Add``2(System.String,System.String,System.Byte,CPF.BindingMode,System.Func{``0,``1},System.Func{``1,``0},System.Action{CPF.Binding,System.Object,System.Exception},System.Action{CPF.Binding,System.Object,System.Exception})" 的 <returns> 文档]

参见