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
傳回
如果具有指定索引的專案存在,則為 值。
- 屬性