Encode SNMP version 3 packet
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public override byte[] encode()
Public Overrides Function encode As Byte()
public: virtual array<unsigned char>^ encode() override
Return Value
Byte array BER encoded SNMP packet.
Remarks
Before encoding the packet into a byte array you need to ensure all required information is
set. Examples of required information is request type, Vbs (Oid + values pairs), USM settings including
SecretName, authentication method and secret (if needed), privacy method and secret (if needed), etc.