Skip to content

,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.Func{--0,System.IObservable{System.Reactive.Unit}},System.Nullable{System.TimeSpan})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},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})} ,System.Func{--0,System.IObservable{System.Reactive.Unit}},System.IObservable{--1},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})} },System.IObservable{--2})} },System.IObservable{--2},System.Nullable{System.TimeSpan})}

AutoPersistHelperMixins.AutoPersistCollection(ObservableCollection, Func>, AutoPersistMetadata) method

Defined in

Type: AutoPersistHelperMixins Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll

Applies to

net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471

Overloads

  • 1. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata) where TItem : notnull, IReactiveObject
  • 2. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, AutoPersistHelperMixins.AutoPersistMetadata metadata, TimeSpan? interval) where TItem : notnull, IReactiveObject
  • 3. 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
  • 4. 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
  • 5. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist) where TItem : notnull, IReactiveObject
  • 6. public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, TimeSpan? interval) where TItem : notnull, IReactiveObject
  • 7. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull
  • 8. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull
  • 9. 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
  • 10. 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
  • 11. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull
  • 12. public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull
  • 13. 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
  • 14. 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
  • 15. 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
  • 16. 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
  • 17. public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull
  • 18. public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, 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

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
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

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
metadata[AutoPersistMetadata](#--
intervalTimeSpan?--

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

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
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

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadata[AutoPersistMetadata](#--
intervalTimeSpan?--

Returns: IDisposable

5. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--

Returns: IDisposable

6. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")]

public static IDisposable AutoPersistCollection<TItem>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, TimeSpan? interval) where TItem : notnull, IReactiveObject

View source

Type parameters

NameDescription
TItem--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
intervalTimeSpan?--

Returns: IDisposable

7. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

8. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable

9. 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

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadata[AutoPersistMetadata](#--

Returns: IDisposable

10. 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

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadata[AutoPersistMetadata](#--
intervalTimeSpan?--

Returns: IDisposable

11. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

12. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")]

public static IDisposable AutoPersistCollection<TItem, TDontCare>(this ReadOnlyObservableCollection<TItem> @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TDontCare--

Parameters

NameTypeDescription
thisReadOnlyObservableCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable

13. 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

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadata[AutoPersistMetadata](#--

Returns: IDisposable

14. 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

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadata[AutoPersistMetadata](#--
intervalTimeSpan?--

Returns: IDisposable

15. 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

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadataProviderFunc--

Returns: IDisposable

16. 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

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
metadataProviderFunc--
intervalTimeSpan?--

Returns: IDisposable

17. Overload

Attributes: [RequiresUnreferencedCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")] [RequiresDynamicCode("AutoPersist may reflect over the runtime type; prefer the AutoPersistMetadata overloads for trimming/AOT.")]

public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--

Returns: IDisposable

18. Overload

Attributes: [RequiresUnreferencedCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")] [RequiresDynamicCode("AutoPersistCollection may reflect over runtime item types via AutoPersist when generic type parameters do not match item runtime types. In trimmed/AOT builds, required property/attribute metadata may be removed unless explicitly preserved. Prefer the overloads that accept AutoPersistMetadata or a metadata provider to avoid runtime reflection.")]

public static IDisposable AutoPersistCollection<TItem, TCollection, TDontCare>(this TCollection @this, Func<TItem, IObservable<Unit>> doPersist, IObservable<TDontCare> manualSaveSignal, TimeSpan? interval) where TItem : notnull, IReactiveObject where TCollection : notnull, INotifyCollectionChanged, IEnumerable<TItem> where TDontCare : notnull

View source

Type parameters

NameDescription
TItem--
TCollection--
TDontCare--

Parameters

NameTypeDescription
thisTCollection--
doPersistFunc>--
manualSaveSignalIObservable--
intervalTimeSpan?--

Returns: IDisposable