Table of Contents

Class TimeoutException

Namespace
Lextm.SharpSnmpLib.Messaging
Assembly
SharpSnmpLib.dll

Timeout exception type of #SNMP.

[DataContract]
public sealed class TimeoutException : OperationException, ISerializable
Inheritance
TimeoutException
Implements
Inherited Members

Constructors

TimeoutException()

Creates a TimeoutException instance.

public TimeoutException()

TimeoutException(string)

Creates a TimeoutException instance with a specific string.

public TimeoutException(string message)

Parameters

message string

Message

TimeoutException(string, Exception)

Creates a TimeoutException instance with a specific string and an Exception instance.

public TimeoutException(string message, Exception inner)

Parameters

message string

Message

inner Exception

Inner exception

Properties

Timeout

The time-out value, in milliseconds. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.

public int Timeout { get; }

Property Value

int

Methods

Create(IPAddress, int)

Creates a TimeoutException.

public static TimeoutException Create(IPAddress agent, int timeout)

Parameters

agent IPAddress

Agent address

timeout int

Timeout

Returns

TimeoutException

ToString()

Returns a string that represents this TimeoutException.

public override string ToString()

Returns

string