Share via


PlaywrightServiceBrowserClient.GetConnectOptions<T> Method

Definition

Gets the connect options for connecting to Playwright Workspaces's cloud hosted browsers.

public virtual Azure.Developer.Playwright.ConnectOptions<T> GetConnectOptions<T>(System.Runtime.InteropServices.OSPlatform? os = default, string? runId = default, string? exposeNetwork = default, System.Threading.CancellationToken cancellationToken = default) where T : class, new();
abstract member GetConnectOptions : Nullable<System.Runtime.InteropServices.OSPlatform> * string * string * System.Threading.CancellationToken -> Azure.Developer.Playwright.ConnectOptions<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
override this.GetConnectOptions : Nullable<System.Runtime.InteropServices.OSPlatform> * string * string * System.Threading.CancellationToken -> Azure.Developer.Playwright.ConnectOptions<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
Public Overridable Function GetConnectOptions(Of T As {Class, New}) (Optional os As Nullable(Of OSPlatform) = Nothing, Optional runId As String = Nothing, Optional exposeNetwork As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ConnectOptions(Of T)

Type Parameters

T

The type of the connect options.

Parameters

os
Nullable<OSPlatform>

The operating system.

runId
String

The run ID.

exposeNetwork
String

The network exposure.

cancellationToken
CancellationToken

Cancellation token.

Returns

The connect options.

Applies to