共用方式為


DispatcherQueueHandler 代理人

定義

將在 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()
屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

範例

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

適用於