JObjectHelperTryGetArrayIndex Method |
Attempts to extract an array index value from a json path segment.
Namespace:
MFiles.VAF.Configuration.JsonMapping
Assembly:
MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 21.8.10524.1
Syntaxpublic bool TryGetArrayIndex(
string pathPart,
out string propName,
out int index
)
Public Function TryGetArrayIndex (
pathPart As String,
<OutAttribute> ByRef propName As String,
<OutAttribute> ByRef index As Integer
) As Boolean
public:
bool TryGetArrayIndex(
String^ pathPart,
[OutAttribute] String^% propName,
[OutAttribute] int% index
)
Parameters
- pathPart
- Type: SystemString
The json path segment to extract the array index from. - propName
- Type: SystemString
Receives the property name portion of the json path segment. - index
- Type: SystemInt32
Receives teh array index of the json path segment if found, -1 otherwise.
Return Value
Type:
BooleanTrue if an index value was found.
See Also