StreamSocketListener.EnableTransferOwnership StreamSocketListener.EnableTransferOwnership StreamSocketListener.EnableTransferOwnership StreamSocketListener.EnableTransferOwnership StreamSocketListener.EnableTransferOwnership Method

Definition

Overloads

EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid)

Enables your app's background task to be triggered by the socket broker when traffic for this StreamSocketListener arrives while the app is not active.

EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction)

Enables your app's background task to be triggered by the socket broker when traffic for this StreamSocketListener arrives while the system is in connected standby.

EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid) EnableTransferOwnership(Guid)

Enables your app's background task to be triggered by the socket broker when traffic for this StreamSocketListener arrives while the app is not active.

public : void EnableTransferOwnership(Platform::Guid taskId)
void EnableTransferOwnership(Guid taskId) const;
public void EnableTransferOwnership(Guid taskId)
Public Sub EnableTransferOwnership(taskId As Guid)
streamSocketListener.enableTransferOwnership(taskId);

Parameters

taskId
Guid Guid Guid

The IBackgroundTaskRegistration.TaskId of the background task that will be triggered by the socket broker when traffic arrives for this StreamSocketListener.

See also

EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction) EnableTransferOwnership(Guid, SocketActivityConnectedStandbyAction)

Enables your app's background task to be triggered by the socket broker when traffic for this StreamSocketListener arrives while the system is in connected standby.

public : void EnableTransferOwnership(Platform::Guid taskId, SocketActivityConnectedStandbyAction connectedStandbyAction)
void EnableTransferOwnership(Guid taskId, SocketActivityConnectedStandbyAction connectedStandbyAction) const;
public void EnableTransferOwnership(Guid taskId, SocketActivityConnectedStandbyAction connectedStandbyAction)
Public Sub EnableTransferOwnership(taskId As Guid, connectedStandbyAction As SocketActivityConnectedStandbyAction)
streamSocketListener.enableTransferOwnership(taskId, connectedStandbyAction);

Parameters

taskId
Guid Guid Guid

The IBackgroundTaskRegistration.TaskId of the background task that will be triggered by the socket broker when traffic arrives for this StreamSocketListener.

connectedStandbyAction
SocketActivityConnectedStandbyAction SocketActivityConnectedStandbyAction SocketActivityConnectedStandbyAction

Specifies whether to enable or disable the activation of the background task when traffic arrives.

See also