,System.Func{--0,System.IObservable{System.Reactive.Unit}},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata)} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata,System.Nullable{System.TimeSpan})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata)} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata,System.Nullable{System.TimeSpan})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata)} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata,System.Nullable{System.TimeSpan})} },System.IObservable{--2},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata)} },System.IObservable{--2},ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata,System.Nullable{System.TimeSpan})} },System.IObservable{--2},System.Func{--0,ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata})} },System.IObservable{--2},System.Func{--0,ReactiveUI.Reactive.AutoPersistHelperMixins.AutoPersistMetadata},System.Nullable{System.TimeSpan})}
AutoPersistHelperMixins.AutoPersistCollection(ObservableCollection, Func>, AutoPersistMetadata) method¶
Defined in
Type: AutoPersistHelperMixins
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Reactive.dll
Applies to
net11.0, net11.0-maccatalyst27.2, net11.0-tvos27.2, net11.0-macos27.2, net11.0-android37.0, net11.0-ios27.2, net10.0, net10.0-tvos26.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-macos26.0, net481, net47, net471, net472, net48
Overloads¶
-
public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject -
public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject -
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, Func<TItem, AutoPersistHelperMixins.AutoPersistMetadata> metadataProvider) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull -
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, Func<TItem, AutoPersistHelperMixins.AutoPersistMetadata> metadataProvider, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
1. Overload¶
public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject
Type parameters
| Name | Description |
|---|---|
TItem | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ObservableCollection | -- |
doPersist | Func | -- |
metadata | [AutoPersistMetadata](# | -- |
Returns: IDisposable
2. Overload¶
public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject
Type parameters
| Name | Description |
|---|---|
TItem | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ObservableCollection | -- |
doPersist | Func | -- |
metadata | [AutoPersistMetadata](# | -- |
interval | TimeSpan? | -- |
Returns: IDisposable
3. Overload¶
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ObservableCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
Returns: IDisposable
4. Overload¶
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ObservableCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
interval | TimeSpan? | -- |
Returns: IDisposable
5. Overload¶
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ReadOnlyObservableCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
Returns: IDisposable
6. Overload¶
public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | ReadOnlyObservableCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
interval | TimeSpan? | -- |
Returns: IDisposable
7. Overload¶
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TCollection | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | TCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
Returns: IDisposable
8. Overload¶
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TCollection | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | TCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadata | [AutoPersistMetadata](# | -- |
interval | TimeSpan? | -- |
Returns: IDisposable
9. Overload¶
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, Func<TItem, AutoPersistHelperMixins.AutoPersistMetadata> metadataProvider) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TCollection | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | TCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadataProvider | Func | -- |
Returns: IDisposable
10. Overload¶
public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, Func<TItem, AutoPersistHelperMixins.AutoPersistMetadata> metadataProvider, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
Type parameters
| Name | Description |
|---|---|
TItem | -- |
TCollection | -- |
TDontCare | -- |
Parameters
| Name | Type | Description |
|---|---|---|
this | TCollection | -- |
doPersist | Func | -- |
manualSaveSignal | IObservable | -- |
metadataProvider | Func | -- |
interval | TimeSpan? | -- |
Returns: IDisposable