ObservableGroup<TKey,TValue> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ObservableGroup<TKey,TValue>(IGrouping<TKey,TValue>) |
Initializes a new instance of the ObservableGroup<TKey,TValue> class. |
ObservableGroup<TKey,TValue>(TKey) |
Initializes a new instance of the ObservableGroup<TKey,TValue> class. |
ObservableGroup<TKey,TValue>(TKey, IEnumerable<TValue>) |
Initializes a new instance of the ObservableGroup<TKey,TValue> class. |
ObservableGroup<TKey,TValue>(IGrouping<TKey,TValue>)
Initializes a new instance of the ObservableGroup<TKey,TValue> class.
public ObservableGroup (System.Linq.IGrouping<TKey,TValue> grouping);
new CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value> : System.Linq.IGrouping<'Key, 'Value> -> CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value>
Public Sub New (grouping As IGrouping(Of TKey, TValue))
Parameters
- grouping
- IGrouping<TKey,TValue>
The grouping to fill the group.
Applies to
ObservableGroup<TKey,TValue>(TKey)
Initializes a new instance of the ObservableGroup<TKey,TValue> class.
public ObservableGroup (TKey key);
new CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value> : 'Key -> CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value>
Public Sub New (key As TKey)
Parameters
- key
- TKey
The key for the group.
Applies to
ObservableGroup<TKey,TValue>(TKey, IEnumerable<TValue>)
Initializes a new instance of the ObservableGroup<TKey,TValue> class.
public ObservableGroup (TKey key, System.Collections.Generic.IEnumerable<TValue> collection);
new CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value> : 'Key * seq<'Value> -> CommunityToolkit.Common.Collections.ObservableGroup<'Key, 'Value>
Public Sub New (key As TKey, collection As IEnumerable(Of TValue))
Parameters
- key
- TKey
The key for the group.
- collection
- IEnumerable<TValue>
The initial collection of data to add to the group.