Megosztás a következőn keresztül:


JsonArray.IndexOf(IJsonValue, UInt32) Method

Definition

Searches for a JsonValue object and returns the zero-based index of its first occurrence within the 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

Parameters

value
IJsonValue

The IJsonValue to look up.

index
UInt32

unsigned int

uint32_t

The zero-based index of the first occurrence of item within the JsonArray, if found; otherwise, –1.

Returns

Boolean

bool

Returns a Boolean value indicating if an occurrence of value was found.

Implements

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@)

Applies to