DispatcherQueueHandler Delegato

Definizione

Callback che verrà eseguito nel thread DispatcherQueue .

public delegate void DispatcherQueueHandler();
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.Guid(3751992476, 6701, 18711, 152, 242, 147, 154, 241, 214, 224, 200)]
class DispatcherQueueHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.Guid(3751992476, 6701, 18711, 152, 242, 147, 154, 241, 214, 224, 200)]
public delegate void DispatcherQueueHandler();
var dispatcherQueueHandlerHandler = function(){
/* Your code */
}
Public Delegate Sub DispatcherQueueHandler()
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 Fall Creators Update (è stato introdotto in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v5.0)

Esempio

Windows.System.DispatcherQueueHandler handler = () =>
                                {
                                    // code for DispatcherQueue to run
                                };

Si applica a