TypedBinding<TSource,TProperty> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
TypedBinding(Func<TSource, ValueTuple<TProperty, bool>> ^ getter, Action<TSource, TProperty> ^ setter, cli::array <Tuple<Func<TSource, System::Object ^> ^, System::String ^> ^> ^ handlers);
public TypedBinding (Func<TSource,(TProperty value, bool success)> getter, Action<TSource,TProperty> setter, Tuple<Func<TSource,object>,string>[] handlers);
new Microsoft.Maui.Controls.Internals.TypedBinding<'Source, 'Property> : Func<'Source, ValueTuple<'Property, bool>> * Action<'Source, 'Property> * Func<'Source, obj> * string[] -> Microsoft.Maui.Controls.Internals.TypedBinding<'Source, 'Property>
Public Sub New (getter As Func(Of TSource, ValueTuple(Of TProperty, Boolean)), setter As Action(Of TSource, TProperty), handlers As Tuple(Of Func(Of TSource, Object), String)())
参数
- getter
- Func<TSource,ValueTuple<TProperty,Boolean>>
- setter
- Action<TSource,TProperty>