ResourceMap.GetValueByIndex 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
返回
如果存在具有指定索引的项,则为 值。
- 属性