Share via


ActiveDirectoryAuthenticationProvider.SetParentActivityOrWindowFunc Method

Definition

Sets a reference to the ViewController (if using Xamarin.iOS), Activity (if using Xamarin.Android) IWin32Window or IntPtr (if using .NET Framework). Used for invoking the browser for Active Directory Interactive authentication.

public:
 void SetParentActivityOrWindowFunc(Func<System::Object ^> ^ parentActivityOrWindowFunc);
public void SetParentActivityOrWindowFunc (Func<object> parentActivityOrWindowFunc);
member this.SetParentActivityOrWindowFunc : Func<obj> -> unit
Public Sub SetParentActivityOrWindowFunc (parentActivityOrWindowFunc As Func(Of Object))

Parameters

parentActivityOrWindowFunc
Func<Object>

The parent as an object, in order to be used from shared .NET Standard assemblies.

Remarks

Mandatory to be set only on Android. See https://aka.ms/msal-net-android-activity for further documentation and details.

Applies to