C# Class Pdelvo.Minecraft.Proxy.Library.Plugins.Events.CancelEventArgs

A base class for cancelable EventArgs
Inheritance: System.EventArgs
Mostrar archivo Open project: pdelvo/Pdelvo.Minecraft.Proxy

Public Methods

Method Description
EnsureSuccess ( ) : void

This message will throw a OperationCanceledException with the CancelMessage if the Canceled flag is set to true

SetCanceled ( string message ) : void

Cancel this operation with a specific message

Method Details

EnsureSuccess() public method

This message will throw a OperationCanceledException with the CancelMessage if the Canceled flag is set to true
public EnsureSuccess ( ) : void
return void

SetCanceled() public method

Cancel this operation with a specific message
public SetCanceled ( string message ) : void
message string The reason why this operation is canceled
return void