Click or drag to resize

CallOnceCreate Method (Object, Action)

Creates a new instance of CallOnce that encapsulates a method that has no parameters and has no return value.

Namespace:  Cauldron.XAML.Threading
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static CallOnce Create(
	Object instance,
	Action delegate
)

Parameters

instance
Type: SystemObject
The instance that is used as key to identify the invoker.
delegate
Type: SystemAction
The delegate to encapsulate.

Return Value

Type: CallOnce
A new instance of CallOnce
Exceptions
ExceptionCondition
ArgumentNullExceptioninstance is null.
ArgumentNullExceptiondelegate is null.
See Also