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

A base class for cancelable EventArgs
Inheritance: System.EventArgs
Afficher le fichier Open project: pdelvo/Pdelvo.Minecraft.Proxy

Méthodes publiques

Méthode 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 méthode

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

SetCanceled() public méthode

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