Click or drag to resize

IShutdownServicePreventShutdown Method

Prevents shutdown with the following reason. Dispose the returned value to allow shutdown again.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
IDisposable PreventShutdown(
	string reason
)

Parameters

reason  String
The reason, will be displayed to the user.

Return Value

IDisposable

[Missing <returns> documentation for "M:Altaxo.Main.Services.IShutdownService.PreventShutdown(System.String)"]

Exceptions
ExceptionCondition
InvalidOperationExceptionShutdown is already in progress
Remarks
This method is thread-safe.
See Also