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


IJSONObject2.TryGetValueAsVariant Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IJSONObject2.TryGetValueAsVariant Method

Returns member valuefor a given name as a VARIANT of the requested type. If member does not exist, returns VARIANT_FALSE in 'success' parameter.

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

Parameters Name [in] Name is a parameter of type BSTR 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

IJSONObject2 Interface