},DynamicData.Binding.IObservableCollection{--0},System.Int32)} },DynamicData.Binding.IObservableCollection{--0},DynamicData.Binding.BindingOptions)} },DynamicData.Binding.IObservableCollection{--0},DynamicData.Binding.IObservableCollectionAdaptor{--0,--1})} },System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,DynamicData.Binding.BindingOptions)} },System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,System.Int32,System.Boolean,DynamicData.Binding.IObservableCollectionAdaptor{--0,--1})} },DynamicData.Binding.IObservableCollection{--0})} },DynamicData.Binding.IObservableCollection{--0},DynamicData.Binding.BindingOptions)} },DynamicData.Binding.IObservableCollection{--0},DynamicData.Binding.ISortedObservableCollectionAdaptor{--0,--1})} },System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,DynamicData.Binding.BindingOptions)} },System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,System.Int32,System.Boolean,DynamicData.Binding.ISortedObservableCollectionAdaptor{--0,--1})} },System.ComponentModel.BindingList{--0},System.Int32)} },System.ComponentModel.BindingList{--0},System.Int32)} }},System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@)} }},System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,DynamicData.Binding.SortAndBindOptions)} }},System.Collections.Generic.IList{--0})} }},System.Collections.Generic.IList{--0},DynamicData.Binding.SortAndBindOptions)} }},System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@)} }},System.Collections.ObjectModel.ReadOnlyObservableCollection{--0}@,DynamicData.Binding.SortAndBindOptions)} }},System.Collections.Generic.IList{--0})} }},System.Collections.Generic.IList{--0},DynamicData.Binding.SortAndBindOptions)}
ObservableCacheEx.Bind(IObservable>, IObservableCollection, int) method¶
Defined in
Type: ObservableCacheEx
Namespace: DynamicData
Assembly: DynamicData.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, netstandard2.0, net462
Overloads¶
- 1.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, int refreshThreshold = 25) where TObject : notnull where TKey : notnull - 2.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, BindingOptions options) where TObject : notnull where TKey : notnull - 3.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, IObservableCollectionAdaptor<TObject, TKey> updater) where TObject : notnull where TKey : notnull - 4.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, BindingOptions options) where TObject : notnull where TKey : notnull - 5.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, int resetThreshold = 25, bool useReplaceForUpdates = true, IObservableCollectionAdaptor<TObject, TKey>? adaptor = null) where TObject : notnull where TKey : notnull - 6.
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination) where TObject : notnull where TKey : notnull - 7.
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, BindingOptions options) where TObject : notnull where TKey : notnull - 8.
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, ISortedObservableCollectionAdaptor<TObject, TKey> updater) where TObject : notnull where TKey : notnull - 9.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, BindingOptions options) where TObject : notnull where TKey : notnull - 10.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, int resetThreshold = 25, bool useReplaceForUpdates = true, ISortedObservableCollectionAdaptor<TObject, TKey>? adaptor = null) where TObject : notnull where TKey : notnull - 11.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, BindingList<TObject> bindingList, int resetThreshold = 25) where TObject : notnull where TKey : notnull - 12.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, BindingList<TObject> bindingList, int resetThreshold = 25) where TObject : notnull where TKey : notnull - 13.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection) where TObject : notnull where TKey : notnull - 14.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, SortAndBindOptions options) where TObject : notnull where TKey : notnull - 15.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, IList<TObject> targetList) where TObject : notnull where TKey : notnull - 16.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, IList<TObject> targetList, SortAndBindOptions options) where TObject : notnull where TKey : notnull - 17.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection) where TObject : notnull where TKey : notnull - 18.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, SortAndBindOptions options) where TObject : notnull where TKey : notnull - 19.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, IList<TObject> targetList) where TObject : notnull where TKey : notnull - 20.
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, IList<TObject> targetList, SortAndBindOptions options) where TObject : notnull where TKey : notnull
1. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, int refreshThreshold = 25) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
refreshThreshold = 25 | int | The number of changes before a reset notification is triggered. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
2. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, BindingOptions options) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
options | [BindingOptions](# | The binding options. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
3. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, IObservableCollectionAdaptor<TObject, TKey> updater) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified binding collection using the specified update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
updater | [IObservableCollectionAdaptor | The updater. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
4. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, BindingOptions options) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified readonly observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
options | [BindingOptions](# | The binding options. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
5. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, int resetThreshold = 25, bool useReplaceForUpdates = true, IObservableCollectionAdaptor<TObject, TKey>? adaptor = null) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified readonly observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
resetThreshold = 25 | int | The number of changes before a reset notification is triggered. |
useReplaceForUpdates = true | bool | Use replace instead of remove / add for updates. NB: Some platforms to not support replace notifications for binding. |
adaptor = null | [IObservableCollectionAdaptor | Specify an adaptor to change the algorithm to update the target collection. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
6. Overload¶
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
7. Overload¶
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, BindingOptions options) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
options | [BindingOptions](# | The binding options. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
8. Overload¶
public static IObservable<ISortedChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, IObservableCollection<TObject> destination, ISortedObservableCollectionAdaptor<TObject, TKey> updater) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified binding collection using the specified update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
destination | [IObservableCollection | The destination. |
updater | [ISortedObservableCollectionAdaptor | The updater. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
9. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, BindingOptions options) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified readonly observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
options | [BindingOptions](# | The binding options. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
10. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, int resetThreshold = 25, bool useReplaceForUpdates = true, ISortedObservableCollectionAdaptor<TObject, TKey>? adaptor = null) where TObject : notnull where TKey : notnull
Summary: Binds the results to the specified readonly observable collection using the default update algorithm.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
resetThreshold = 25 | int | The number of changes before a reset event is called on the observable collection. |
useReplaceForUpdates = true | bool | Use replace instead of remove / add for updates. NB: Some platforms to not support replace notifications for binding. |
adaptor = null | [ISortedObservableCollectionAdaptor | Specify an adaptor to change the algorithm to update the target collection. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source. |
11. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, BindingList<TObject> bindingList, int resetThreshold = 25) where TObject : notnull where TKey : notnull
Summary: Binds a clone of the observable change set to the target observable collection.
Type parameters
| Name | Description |
|---|---|
TObject | The object type. |
TKey | The key type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
bindingList | BindingList | The target binding list. |
resetThreshold = 25 | int | The reset threshold. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source or targetCollection. |
12. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, BindingList<TObject> bindingList, int resetThreshold = 25) where TObject : notnull where TKey : notnull
Summary: Binds a clone of the observable change set to the target observable collection.
Type parameters
| Name | Description |
|---|---|
TObject | The object type. |
TKey | The key type. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
bindingList | BindingList | The target binding list. |
resetThreshold = 25 | int | The reset threshold. |
Returns: IObservable
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | source or targetCollection. |
13. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection) where TObject : notnull where TKey : notnull
Summary: Bind paged data to the specified readonly observable collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
Returns: IObservable
14. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, SortAndBindOptions options) where TObject : notnull where TKey : notnull
Summary: Bind paged data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
options | [SortAndBindOptions](# | Bind and sort default options. |
Returns: IObservable
15. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, IList<TObject> targetList) where TObject : notnull where TKey : notnull
Summary: Bind paged data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
targetList | IList | The list to bind to. |
Returns: IObservable
16. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, PageContext<TObject>>> source, IList<TObject> targetList, SortAndBindOptions options) where TObject : notnull where TKey : notnull
Summary: Bind paged data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
targetList | IList | The list to bind to. |
options | [SortAndBindOptions](# | Bind and sort default options. |
Returns: IObservable
17. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection) where TObject : notnull where TKey : notnull
Summary: Bind virtualized and sorted data to the specified readonly observable collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
Returns: IObservable
18. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, out ReadOnlyObservableCollection<TObject> readOnlyObservableCollection, SortAndBindOptions options) where TObject : notnull where TKey : notnull
Summary: Bind virtualized data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
out readOnlyObservableCollection | ReadOnlyObservableCollection | The resulting read only observable collection. |
options | [SortAndBindOptions](# | Bind and sort default options. |
Returns: IObservable
19. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, IList<TObject> targetList) where TObject : notnull where TKey : notnull
Summary: Bind virtualized data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
targetList | IList | The list to bind to. |
Returns: IObservable
20. Overload¶
public static IObservable<IChangeSet<TObject, TKey>> Bind<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey, VirtualContext<TObject>>> source, IList<TObject> targetList, SortAndBindOptions options) where TObject : notnull where TKey : notnull
Summary: Bind virtualized data to the specified collection.
Type parameters
| Name | Description |
|---|---|
TObject | The type of the object. |
TKey | The type of the key. |
Parameters
| Name | Type | Description |
|---|---|---|
source | IObservable | The source. |
targetList | IList | The list to bind to. |
options | [SortAndBindOptions](# | Bind and sort default options. |
Returns: IObservable