![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IJ > IJSONObject2 Interface > IJSONObject2.TryGetValueAsVariant Method (ArcObjects .NET 10.4 SDK) |
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