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
Field Value
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for