CFMessagePort.InvalidationCallback Property
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.
Gets or sets the callback invoked when the message port becomes invalid.
public Action? InvalidationCallback { get; set; }
member this.InvalidationCallback : Action with get, set
Property Value
The invalidation callback, or null if no callback is installed.
Remarks
Assigning a new callback replaces the previous callback. Assign null to remove it. If the port is already invalid when a callback is assigned, the callback is invoked synchronously.