Share via


RemoteAutomationServer.ReportSession(Guid) Method

Definition

Initiates the server (remote) side of a connection between a local client and a remote provider.

public:
 static void ReportSession(Platform::Guid sessionId);
 static void ReportSession(winrt::guid const& sessionId);
public static void ReportSession(Guid sessionId);
function reportSession(sessionId)
Public Shared Sub ReportSession (sessionId As Guid)

Parameters

sessionId
Guid

Platform::Guid

winrt::guid

The unique identifier for the session.

This should be the same identifer as the corresponding client session was initialized with.

Remarks

The server session can be initialized 'lazily'—when the remote client app first detects an attempt to access its UI (for example, receives the WM_GETOBJECT window message or the AutomationProviderRequested event), it can send a protocol-appropriate message to the server, which invokes this method.

It doesn't matter which side is ready to connect first. Each side of the connection will wait (with a timeout) for the other to complete the connection.

Applies to