StreamSocket.EnableTransferOwnership StreamSocket.EnableTransferOwnership StreamSocket.EnableTransferOwnership StreamSocket.EnableTransferOwnership StreamSocket.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 StreamSocket arrives while the app is not active.

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

Enables or disables the ability of your app's background task to be triggered by the socket broker when traffic for this StreamSocket 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 StreamSocket 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)
streamSocket.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 StreamSocket.

See also

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

Enables or disables the ability of your app's background task to be triggered by the socket broker when traffic for this StreamSocket 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)
streamSocket.enableTransferOwnership(taskId, connectedStandbyAction);

Parameters

taskId
Guid Guid Guid

The IBackgroundTaskRegistration.TaskId of the background task being enabled or disabled.

connectedStandbyAction
SocketActivityConnectedStandbyAction SocketActivityConnectedStandbyAction SocketActivityConnectedStandbyAction

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

See also