PowerSNMP for .NET
Encode() Method




Encodes all SNMP version 1/2 messages.
Syntax
Public Overloads Overrides Function Encode() As Byte()
Dim instance As InformMessage
Dim value() As Byte
 
value = instance.Encode()
public override byte[] Encode()
public: byte[]* Encode(); override 
public:
array<byte>^ Encode(); override 

Return Value

A byte array containing the encoded message.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionIndicates the required SysUpTime and TrapOid variables are not set.
See Also

Reference

InformMessage Class
InformMessage Members
Overload List

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic