This document is archived and information here might be outdated.  Recommended version.


IJSONArray2.TryGetValueAsVariant Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

IJSONArray2.TryGetValueAsVariant Method

Returns array value at a given index as a VARIANT of the requested type. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.

[Visual Basic .NET]
Public Function TryGetValueAsVariant ( _
    ByVal index As Integer, _
    ByVal variantType As Integer, _
    ByRef Value As Object _
) As Boolean
[C#]
public bool TryGetValueAsVariant (
    int index,
    int variantType,
    ref object Value
);
[C++]
HRESULT TryGetValueAsVariant(
  long index,
  long variantType,
  VARIANT* Value,
  VARIANT_BOOL* success
);
[C++]

Parameters index [in] index is a parameter of type long variantType [in] variantType is a parameter of type long Value [out] Value is a parameter of type VARIANT success [out, retval] success is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IJSONArray2 Interface