Delen via


ResourceMap.Split Method

Definition

Splits the map view into two views.

public:
 virtual void Split([Out] IMapView<Platform::String ^, NamedResource ^> ^ & first, [Out] IMapView<Platform::String ^, NamedResource ^> ^ & second) = IMapView<Platform::String ^, NamedResource ^>::Split;
void Split([Out] IMapView<winrt::hstring, NamedResource const&> const& & first, [Out] IMapView<winrt::hstring, NamedResource const&> const& & second);
public void Split(out IReadOnlyDictionary<string,NamedResource> first, out IReadOnlyDictionary<string,NamedResource> second);
Public Sub Split (ByRef first As IReadOnlyDictionary(Of String, NamedResource), ByRef second As IReadOnlyDictionary(Of String, NamedResource))

Parameters

first

IReadOnlyDictionary<String,NamedResource>

IMapView<Platform::String,NamedResource>

IMapView<winrt::hstring,NamedResource>

One half of the original map.

second

IReadOnlyDictionary<String,NamedResource>

IMapView<Platform::String,NamedResource>

IMapView<winrt::hstring,NamedResource>

The second half of the original map.

Remarks

The two views that result from the split operation might not contain the same number of items. The two views do not overlap.

If a view can't be split, then both the first and second parameter are null.

Applies to