EventPubSub.Subscribe<TEvent,TArgs>(Action<TArgs>) Method
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.
public void Subscribe<TEvent,TArgs> (Action<TArgs> action) where TEvent : Microsoft.Quantum.IQSharp.Event<TArgs>;
member this.Subscribe : Action<'Args> -> unit (requires 'Event :> Microsoft.Quantum.IQSharp.Event<'Args>)
Public Sub Subscribe(Of TEvent As Event(Of TArgs), TArgs As Event(Of TArgs)) (action As Action(Of TArgs))
Type Parameters
- TEvent
- TArgs
Parameters
- action
- Action<TArgs>