Partager via


AcquireTokenInteractiveParameterBuilder.WithParentActivityOrWindow Method

Definition

Overloads

WithParentActivityOrWindow(IntPtr)

Sets a reference to the IntPtr to a window that triggers the browser to be shown. Used to center the browser that pop-up onto this window. The center of the screen or the foreground app if a value is configured.

WithParentActivityOrWindow(Object)

Sets a reference to the ViewController (if using iOS), Activity (if using Android) IWin32Window or IntPtr (if using .Net Framework). Used for invoking the browser.

WithParentActivityOrWindow(IntPtr)

Important

This API is not CLS-compliant.

Sets a reference to the IntPtr to a window that triggers the browser to be shown. Used to center the browser that pop-up onto this window. The center of the screen or the foreground app if a value is configured.

[System.CLSCompliant(false)]
public Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithParentActivityOrWindow (IntPtr window);
[<System.CLSCompliant(false)>]
member this.WithParentActivityOrWindow : nativeint -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
Public Function WithParentActivityOrWindow (window As IntPtr) As AcquireTokenInteractiveParameterBuilder

Parameters

window
IntPtr

nativeint

The current window as IntPtr

Returns

The builder to chain the .With methods

Attributes

Applies to

WithParentActivityOrWindow(Object)

Sets a reference to the ViewController (if using iOS), Activity (if using Android) IWin32Window or IntPtr (if using .Net Framework). Used for invoking the browser.

public Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithParentActivityOrWindow (object parent);
member this.WithParentActivityOrWindow : obj -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
Public Function WithParentActivityOrWindow (parent As Object) As AcquireTokenInteractiveParameterBuilder

Parameters

parent
Object

The parent as an object, so that it can be used from shared NetStandard assemblies

Returns

The builder to chain the .With methods

Remarks

Mandatory only on Android. Can also be set via the PublicClientApplication builder.

Applies to