)>
Defined in Type: StableCompositeDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Applies to
netstandard2.0
Overloads
- 1.
public static ICancelable Create(IDisposable disposable1, IDisposable disposable2) - 2.
public static ICancelable Create(params IDisposable[] disposables) - 3.
public static ICancelable Create(IEnumerable<IDisposable> disposables)
1. Overload
public static ICancelable Create(IDisposable disposable1, IDisposable disposable2)
Summary: Creates a new group containing two disposable resources that are disposed together.
Parameters
| Name | Type | Description |
|---|---|---|
disposable1 | IDisposable | The first disposable resource to add to the group. |
disposable2 | IDisposable | The second disposable resource to add to the group. |
Returns: ICancelable -- Group of disposable resources that are disposed together.
2. Overload
public static ICancelable Create(params IDisposable[] disposables)
Summary: Creates a new group of disposable resources that are disposed together.
Parameters
| Name | Type | Description |
|---|---|---|
params disposables | IDisposable[] | Disposable resources to add to the group. |
Returns: ICancelable -- Group of disposable resources that are disposed together.
3. Overload
public static ICancelable Create(IEnumerable<IDisposable> disposables)
Summary: Creates a new group of disposable resources that are disposed together.
Parameters
| Name | Type | Description |
|---|---|---|
disposables | IEnumerable | Disposable resources to add to the group. |
Returns: ICancelable -- Group of disposable resources that are disposed together.