ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。 参数名: index --Message: 索引超出范围。必须为非负值并小于集合大小。 参数名: index StackTrace: 在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) 在 DynamicClass.<>c__DisplayClass8.<OnWindowCreated>b__1(Object sender, CoreWebView2InitializationCompletedEventArgs args) 在 Microsoft.Web.WebView2.Wpf.WebView2Base.<>c__DisplayClass33_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 DynamicClass.<>c__DisplayClass5.<<OnWindowCreated>b__3>d__b.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)