JsonArray.IndexOf(IJsonValue, UInt32) 方法

定義

搜尋 JsonValue 物件,並傳回其在 JsonArray中第一次出現的以零起始的索引。

public:
 virtual bool IndexOf(IJsonValue ^ value, [Out] unsigned int & index) = IVector<IJsonValue ^>::IndexOf;
bool IndexOf(IJsonValue const& value, [Out] uint32_t & index);
public bool IndexOf(IJsonValue value, out uint index);
Public Function IndexOf (value As IJsonValue, ByRef index As UInteger) As Boolean

參數

value
IJsonValue

要查閱的 IJsonValue

index
UInt32

unsigned int

uint32_t

如果找到, 則為 JsonArray中第一個出現專案之以零起始的索引;否則為 –1。

傳回

Boolean

bool

傳回 布林 值,指出是否找到

實作

M:Windows.Foundation.Collections.IVector1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVector1.IndexOf(0,unsigned int@) M:Windows.Foundation.Collections.IVector1.IndexOf(0,uint32_t@)

適用於