SnmpMessageExtensionMessageId Method |
Gets the message ID.
Namespace: Lextm.SharpSnmpLib.MessagingAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static int MessageId(
this ISnmpMessage message
)
<ExtensionAttribute>
Public Shared Function MessageId (
message As ISnmpMessage
) As Integer
Dim message As ISnmpMessage
Dim returnValue As Integer
returnValue = message.MessageId()
public:
[ExtensionAttribute]
static int MessageId(
ISnmpMessage^ message
)
[<ExtensionAttribute>]
static member MessageId :
message : ISnmpMessage -> int
Parameters
- message ISnmpMessage
- The ISnmpMessage.
Field Value
Int32The message ID.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISnmpMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
RemarksFor v3, message ID is different from request ID. For v1 and v2c, they are the same.
See Also