ActiveDirectoryAuthenticationProvider.SetParentActivityOrWindowFunc Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.