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


IJSONObject2.TryGetValueAsVariant Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IJ > IJSONObject2 Interface > IJSONObject2.TryGetValueAsVariant Method
ArcGIS Developer Help

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
);
[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*

Product Availability

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

See Also

IJSONObject2 Interface