CompositionGraphicsDevice.RenderingDeviceReplaced Kejadian
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Peristiwa dipicu ketika perangkat penyajian telah diganti.
// Register
event_token RenderingDeviceReplaced(TypedEventHandler<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs const&> const& handler) const;
// Revoke with event_token
void RenderingDeviceReplaced(event_token const* cookie) const;
// Revoke with event_revoker
CompositionGraphicsDevice::RenderingDeviceReplaced_revoker RenderingDeviceReplaced(auto_revoke_t, TypedEventHandler<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs const&> const& handler) const;
public event TypedEventHandler<CompositionGraphicsDevice,RenderingDeviceReplacedEventArgs> RenderingDeviceReplaced;
function onRenderingDeviceReplaced(eventArgs) { /* Your code */ }
compositionGraphicsDevice.addEventListener("renderingdevicereplaced", onRenderingDeviceReplaced);
compositionGraphicsDevice.removeEventListener("renderingdevicereplaced", onRenderingDeviceReplaced);
- or -
compositionGraphicsDevice.onrenderingdevicereplaced = onRenderingDeviceReplaced;
Public Custom Event RenderingDeviceReplaced As TypedEventHandler(Of CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs)
Jenis Acara
Persyaratan Windows
Rangkaian perangkat |
Windows 10 (diperkenalkan dalam 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v2.0)
|