Table of Contents

Method FromJsonString

Namespace
Skyline.DataMiner.Utils.SNMP
Assembly
Skyline.DataMiner.Utils.SNMP.dll

FromJsonString(string, SnmpDeltaHelper)

Deserializes a JSON string to a SnmpHelper instance.

public static SnmpHelper FromJsonString(string snmpHelperSerialized, SnmpDeltaHelper deltaHelper)

Parameters

snmpHelperSerialized string

Serialized SnmpHelper instance.

deltaHelper SnmpDeltaHelper

An instance of the SnmpDeltaHelper class which will take care of fetching the SNMP Group Delta from DataMiner.

Returns

SnmpHelper

If the snmpHelperSerialized is valid, a new instance of the SnmpHelper class with all data found in snmpHelperSerialized.
Otherwise, throws a JsonReaderException.

Exceptions

JsonReaderException

snmpHelperSerialized is an invalid string representation of a SnmpHelper instance.