See Also

Agent Class  | Agent Members  | Overload List

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

Language

Visual Basic

C#

C++

C++/CLI

Show All

message
An instance of a ResponseMessage, ReportMessage, TrapMessage, or NotifyMessage.
remoteHost
The name or IP address (in dot notation) of the intended recipient SNMP manager.
remotePort
May be used to specify a port other than the default port of 162. Managers may be configured to listen for traps on any port desired.
See Also Languages PowerSNMP for .NET

Send(Message,String,Int32) Method

Dart.PowerSNMP Namespace > Agent Class > Send Method : Send(Message,String,Int32) Method

Send a message to the SNMP manager specified.

[Visual Basic]
Overloads Public Function Send( _    ByVal message As Message, _    ByVal remoteHost As String, _    ByVal remotePort As Integer _ ) As Integer
[C#]
public int Send(    Message message,    string remoteHost,    int remotePort );
[C++]
public: int Send(    Message* message,    string* remoteHost,    int remotePort )
[C++/CLI]
public: int Send(    Message^ message,    String^ remoteHost,    int remotePort )

Parameters

message
An instance of a ResponseMessage, ReportMessage, TrapMessage, or NotifyMessage.
remoteHost
The name or IP address (in dot notation) of the intended recipient SNMP manager.
remotePort
May be used to specify a port other than the default port of 162. Managers may be configured to listen for traps on any port desired.

Exceptions

ExceptionDescription
SocketExceptionA problem was experienced using network resources.
InvalidOperationExceptionThe provided message parameter is not a ResponseMessage, ReportMessage, TrapMessage, or NotifyMessage.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista

See Also

Agent Class  | Agent Members  | Overload List


Send comments on this topic.

Documentation version 1.2.0.0.

© 2008 Dart Communications.  All rights reserved.