StreamSocketListener.TransferOwnership StreamSocketListener.TransferOwnership StreamSocketListener.TransferOwnership StreamSocketListener.TransferOwnership StreamSocketListener.TransferOwnership Method

Definition

Overloads

TransferOwnership(String) TransferOwnership(String) TransferOwnership(String) TransferOwnership(String) TransferOwnership(String)

Transfers ownership of the StreamSocketListener to the socket brokering service, which monitors socket activity and notifies the app through a background task if there is any activity.

TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext)

Transfers ownership of the StreamSocketListener to the socket brokering service, which monitors socket activity and notifies the app through a background task if there is any activity.

TransferOwnership(String) TransferOwnership(String) TransferOwnership(String) TransferOwnership(String) TransferOwnership(String)

Transfers ownership of the StreamSocketListener to the socket brokering service, which monitors socket activity and notifies the app through a background task if there is any activity.

public : void TransferOwnership(Platform::String socketId)
void TransferOwnership(winrt::hstring socketId) const;
public void TransferOwnership(String socketId)
Public Sub TransferOwnership(socketId As String)
streamSocketListener.transferOwnership(socketId);

Parameters

socketId
String String String

A string the app uses to identify the transferred socket. The string should identify this socket uniquely within the app. When activity occurs on this socket, this string will be provided to the app to identify the socket.

See also

TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext) TransferOwnership(String, SocketActivityContext)

Transfers ownership of the StreamSocketListener to the socket brokering service, which monitors socket activity and notifies the app through a background task if there is any activity.

public : void TransferOwnership(Platform::String socketId, SocketActivityContext data)
void TransferOwnership(winrt::hstring socketId, SocketActivityContext data) const;
public void TransferOwnership(String socketId, SocketActivityContext data)
Public Sub TransferOwnership(socketId As String, data As SocketActivityContext)
streamSocketListener.transferOwnership(socketId, data);

Parameters

socketId
String String String

A string the app uses to identify the transferred socket. The string should identify this socket uniquely within the app. When activity occurs on this socket, this string will be provided to the app to identify the socket.

data
SocketActivityContext SocketActivityContext SocketActivityContext

Use the SocketActivityContext to pass context information through the socket broker. When your app is notified by the broker of activity, this SocketActivityContext will be provided to your app to help establish the context in which you should handle the notification.

See also