ResourceMap.GetValueByIndex Method

Definition

Overloads

GetValueByIndex(UInt32)

Returns the resource at the specified index in the default context.

GetValueByIndex(UInt32, ResourceContext)

Returns the resource at the specified index in the specified context.

GetValueByIndex(UInt32)

Returns the resource at the specified index in the default context.

public:
 virtual IKeyValuePair<Platform::String ^, ResourceCandidate ^> ^ GetValueByIndex(unsigned int index) = GetValueByIndex;
/// [Windows.Foundation.Metadata.Overload("GetValueByIndex")]
IKeyValuePair<winrt::hstring, ResourceCandidate const&> GetValueByIndex(uint32_t const& index);
[Windows.Foundation.Metadata.Overload("GetValueByIndex")]
public KeyValuePair<string,ResourceCandidate> GetValueByIndex(uint index);
function getValueByIndex(index)
Public Function GetValueByIndex (index As UInteger) As KeyValuePair(Of String, ResourceCandidate)

Parameters

index
UInt32

unsigned int

uint32_t

The index to use to locate the resource in the context.

Returns

The value, if an item with the specified index exists.

Attributes

Applies to

GetValueByIndex(UInt32, ResourceContext)

Returns the resource at the specified index in the specified context.

public:
 virtual IKeyValuePair<Platform::String ^, ResourceCandidate ^> ^ GetValueByIndex(unsigned int index, ResourceContext ^ context) = GetValueByIndex;
/// [Windows.Foundation.Metadata.Overload("GetValueByIndexWithContext")]
IKeyValuePair<winrt::hstring, ResourceCandidate const&> GetValueByIndex(uint32_t const& index, ResourceContext const& context);
[Windows.Foundation.Metadata.Overload("GetValueByIndexWithContext")]
public KeyValuePair<string,ResourceCandidate> GetValueByIndex(uint index, ResourceContext context);
function getValueByIndex(index, context)
Public Function GetValueByIndex (index As UInteger, context As ResourceContext) As KeyValuePair(Of String, ResourceCandidate)

Parameters

index
UInt32

unsigned int

uint32_t

The index to use to locate the resource in the context.

context
ResourceContext

Returns

The value, if an item with the specified index exists.

Attributes

Applies to