Language

CFMessagePort.InvalidationCallback Property

Definition

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.

Applies to