Class HangingRequestDisconnectEventArgs
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.request.HangingRequestDisconnectEventArgs
-
public final class HangingRequestDisconnectEventArgs extends Object
Represents a collection of arguments for the HangingServiceRequestBase.HangingRequestDisconnectHandler delegate method.
-
-
Constructor Summary
Constructors Constructor Description HangingRequestDisconnectEventArgs(HangingRequestDisconnectReason reason, Exception exception)Initializes a new instance of the HangingRequestDisconnectEventArgs class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptiongetException()Gets the exception that caused the disconnection.HangingRequestDisconnectReasongetReason()Gets the reason that the user was disconnected.protected voidsetException(Exception value)Sets the exception that caused the disconnection.protected voidsetReason(HangingRequestDisconnectReason value)Sets the reason that the user was disconnected.
-
-
-
Constructor Detail
-
HangingRequestDisconnectEventArgs
public HangingRequestDisconnectEventArgs(HangingRequestDisconnectReason reason, Exception exception)
Initializes a new instance of the HangingRequestDisconnectEventArgs class.- Parameters:
reason- The reason.exception- The exception.
-
-
Method Detail
-
getReason
public HangingRequestDisconnectReason getReason()
Gets the reason that the user was disconnected.- Returns:
- reason The reason.
-
setReason
protected void setReason(HangingRequestDisconnectReason value)
Sets the reason that the user was disconnected.- Parameters:
value- The reason.
-
getException
public Exception getException()
Gets the exception that caused the disconnection. Can be null.- Returns:
- exception The Exception.
-
setException
protected void setException(Exception value)
Sets the exception that caused the disconnection. Can be null.- Parameters:
value- The Exception.
-
-