PerceptionColorFrameSource.VideoProfileChanged 事件

定义

订阅 VideoProfileChanged 事件。

// Register
event_token VideoProfileChanged(TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;

// Revoke with event_token
void VideoProfileChanged(event_token const* cookie) const;

// Revoke with event_revoker
PerceptionColorFrameSource::VideoProfileChanged_revoker VideoProfileChanged(auto_revoke_t, TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
event_token VideoProfileChanged(TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;

// Revoke with event_token
void VideoProfileChanged(event_token const* cookie) const;

// Revoke with event_revoker
PerceptionColorFrameSource::VideoProfileChanged_revoker VideoProfileChanged(auto_revoke_t, TypedEventHandler<PerceptionColorFrameSource, IInspectable const&> const& handler) const;
public event TypedEventHandler<PerceptionColorFrameSource,object> VideoProfileChanged;
[add: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PerceptionColorFrameSource,object> VideoProfileChanged;
function onVideoProfileChanged(eventArgs) { /* Your code */ }
perceptionColorFrameSource.addEventListener("videoprofilechanged", onVideoProfileChanged);
perceptionColorFrameSource.removeEventListener("videoprofilechanged", onVideoProfileChanged);
- or -
perceptionColorFrameSource.onvideoprofilechanged = onVideoProfileChanged;
Public Custom Event VideoProfileChanged As TypedEventHandler(Of PerceptionColorFrameSource, Object) 

事件类型

属性

适用于