PerceptionControlSession PerceptionControlSession PerceptionControlSession PerceptionControlSession Class

Definition

Represents a control session on a controllable frame source.

public : sealed class PerceptionControlSession : IPerceptionControlSession, IClosablepublic sealed class PerceptionControlSession : IPerceptionControlSession, IDisposablePublic NotInheritable Class PerceptionControlSession Implements IPerceptionControlSession, IDisposable// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Close() Close() Close() Close()

Releases system resources that are exposed by a Windows Runtime object.

public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.

Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()

TrySetPropertyAsync(String, Object) TrySetPropertyAsync(String, Object) TrySetPropertyAsync(String, Object) TrySetPropertyAsync(String, Object)

Creates a property change request. This request is asynchronously processed, and is not guaranteed to succeed. The property change result should be inspected to determine if the property change was actually accepted and, if it was not, the reason why the property change was not accepted.

public : IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(PlatForm::String name, PlatForm::Object value)public IAsyncOperation<PerceptionFrameSourcePropertyChangeResult> TrySetPropertyAsync(String name, Object value)Public Function TrySetPropertyAsync(name As String, value As Object) As IAsyncOperation( Of PerceptionFrameSourcePropertyChangeResult )// You can use this method in JavaScript.
Parameters
name
PlatForm::String String String String

The name of the property to change.

value
PlatForm::Object Object Object Object

The new property value.

Returns

Events

ControlLost ControlLost ControlLost ControlLost

Subscribes to the ControlLost event. This event is triggered when control of the session is lost to another client.

public : event TypedEventHandler ControlLost<PerceptionControlSession,  object>public event TypedEventHandler ControlLost<PerceptionControlSession,  object>Public Event ControlLost<PerceptionControlSession,  object>// You can use this event in JavaScript.