AsyncEvent<TEventArgs>.Subtraction Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Operator -= to support standard mechanism of event subscription
public:
static Microsoft::VisualStudio::Workspace::AsyncEvent<TEventArgs> ^ operator -(Microsoft::VisualStudio::Workspace::AsyncEvent<TEventArgs> ^ e, Func<System::Object ^, TEventArgs, System::Threading::Tasks::Task ^> ^ callback);
public static Microsoft.VisualStudio.Workspace.AsyncEvent<TEventArgs> operator - (Microsoft.VisualStudio.Workspace.AsyncEvent<TEventArgs> e, Func<object,TEventArgs,System.Threading.Tasks.Task> callback);
public static Microsoft.VisualStudio.Workspace.AsyncEvent<TEventArgs>? operator - (Microsoft.VisualStudio.Workspace.AsyncEvent<TEventArgs>? e, Func<object?,TEventArgs,System.Threading.Tasks.Task> callback);
static member ( - ) : Microsoft.VisualStudio.Workspace.AsyncEvent<'EventArgs (requires 'EventArgs :> EventArgs)> * Func<obj, 'EventArgs, System.Threading.Tasks.Task (requires 'EventArgs :> EventArgs)> -> Microsoft.VisualStudio.Workspace.AsyncEvent<'EventArgs (requires 'EventArgs :> EventArgs)>
Public Shared Operator - (e As AsyncEvent(Of TEventArgs), callback As Func(Of Object, TEventArgs, Task)) As AsyncEvent(Of TEventArgs)
Parameters
The async event class
Returns
The Async event