MsalError.InvalidOwnerWindowType Field
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.
Invalid owner window type.
What happens?
You used"AcquireTokenInteractiveParameterBuilder.WithParentActivityOrWindow(object)
but the parameter you passed is invalid.
Remediation
On .NET Standard, the expected object is anActivity
on Android, a UIViewController
on iOS,
a NSWindow
on MAC, and a IWin32Window
or IntPr
on Windows.
If you are in a WPF application, you can use WindowInteropHelper(wpfControl).Handle
to get the window
handle associated with a WPF control
public const string InvalidOwnerWindowType;
val mutable InvalidOwnerWindowType : string
Public Const InvalidOwnerWindowType As String