Resource​Map​Iterator Resource​Map​Iterator Resource​Map​Iterator Class

Definition

Supports iteration over a ResourceMap.

public sealed class ResourceMapIterator : IIteratorpublic sealed class ResourceMapIterator : IIteratorPublic NotInheritable Class ResourceMapIterator Implements IIterator
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Current Current Current

Gets the current item in the ResourceMap.

public IKeyValuePair<string, NamedResource> Current { get; }public IKeyValuePair<string, NamedResource> Current { get; }Public ReadOnly Property Current As IKeyValuePair<string, NamedResource>
Value

The key and NamedResource key-value pair for the current item.

Attributes

HasCurrent HasCurrent HasCurrent

Gets a value that indicates whether there is a current item, or whether the iterator is at the end of the ResourceMap.

public bool HasCurrent { get; }public bool HasCurrent { get; }Public ReadOnly Property HasCurrent As bool
Value
bool bool bool

TRUE if the iterator refers to a valid item that is in the map, and otherwise FALSE.

Attributes

Methods

GetMany(IKeyValuePair<String, NamedResource>[]) GetMany(IKeyValuePair<String, NamedResource>[]) GetMany(IKeyValuePair<String, NamedResource>[])

Returns all the items in the ResourceMap.

public uint GetMany(IKeyValuePair<String, NamedResource>[] items)public uint GetMany(IKeyValuePair<String, NamedResource>[] items)Public Function GetMany(items As IKeyValuePair<String, NamedResource>[]) As uint
Parameters
items

The items in the map.

Returns
uint uint uint

The number of items in the map.

Attributes

MoveNext() MoveNext() MoveNext()

Moves the iterator forward to the next item and returns HasCurrent.

public bool MoveNext()public bool MoveNext()Public Function MoveNext() As bool
Returns
bool bool bool

TRUE if the iterator refers to a valid item that is in the map, and otherwise FALSE.

Attributes