Поделиться через


ResourceMap.GetValueByIndex Метод

Определение

Перегрузки

GetValueByIndex(UInt32)

Возвращает ресурс по указанному индексу в контексте по умолчанию.

GetValueByIndex(UInt32, ResourceContext)

Возвращает ресурс по указанному индексу в указанном контексте.

GetValueByIndex(UInt32)

Возвращает ресурс по указанному индексу в контексте по умолчанию.

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)

Параметры

index
UInt32

unsigned int

uint32_t

Индекс, используемый для поиска ресурса в контексте.

Возвращаемое значение

Значение , если элемент с указанным индексом существует.

Атрибуты

Применяется к

GetValueByIndex(UInt32, ResourceContext)

Возвращает ресурс по указанному индексу в указанном контексте.

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)

Параметры

index
UInt32

unsigned int

uint32_t

Индекс, используемый для поиска ресурса в контексте.

context
ResourceContext

Возвращаемое значение

Значение , если элемент с указанным индексом существует.

Атрибуты

Применяется к