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 Overrides Function Encode( _
   ByVal fipsMode As Boolean _
) As Byte()
Dim instance As Trap2Message
Dim fipsMode As Boolean
Dim value() As Byte
 
value = instance.Encode(fipsMode)
public override byte[] Encode( 
   bool fipsMode
)
public: byte[]* Encode( 
   bool fipsMode
) override 
public:
array<byte>^ Encode( 
   bool fipsMode
) override 

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

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