JsonObjectIndexOf Method

Determines the index of a specific property in the JsonObject.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public int IndexOf(
	string propertyName
)

Parameters

propertyName  String
The name of the property to locate in the JsonObject.

Return Value

Int32
The index of the property if found in the JsonObject; otherwise, -1.

Exceptions

ArgumentNullExceptionpropertyName is .

See Also