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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de