Skip to content

API reference Obsidian.API.Events

ICancellable interface

Provides a mechanism for cancelling default behaviour.

public interface ICancellable

In Obsidian.API.

Properties

IsCancelled

bool IsCancelled { get; }

Gets a value indicating whether the default behaviour should be cancelled.

Methods

Cancel()

void Cancel();

Sets a flag which prevents default (vanilla) behavior from executing.

Remarks

This flag only affects vanilla behavior. If you wish to prevent other handlers from running, see AsyncEventArgs.Handled.

On this page