PowerSNMP for .NET
Encode(Boolean) Method




When True, an exception will be thrown if the message security parameters specify FIPS 140-2 non-compliant algorithms.
Encodes all SNMP version 1/2/3 messages except for traps.
Syntax
Public Overloads Overridable Function Encode( _
   ByVal fipsMode As Boolean _
) As Byte()
Dim instance As StandardMessage
Dim fipsMode As Boolean
Dim value() As Byte
 
value = instance.Encode(fipsMode)
public virtual byte[] Encode( 
   bool fipsMode
)
public: virtual byte[]* Encode( 
   bool fipsMode
) 
public:
virtual array<byte>^ Encode( 
   bool fipsMode
) 

Parameters

fipsMode
When True, an exception will be thrown if the message security parameters specify FIPS 140-2 non-compliant algorithms.

Return Value

A byte array with the encoded message.
Remarks
Agent/Manager.FipsMode is typically used as the argument for fipsMode.
See Also

Reference

StandardMessage Class
StandardMessage 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