ThreadStateException: 必须先将当前线程设置为单个线程单元(STA)模式方可进行 OLE 调用。 StackTrace: 在 System.Windows.OleServicesContext.SetDispatcherThread() 在 System.Windows.OleServicesContext.get_CurrentOleServicesContext() 在 System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy) 在 System.Windows.Clipboard.SetDataObject(Object data) 在 BetterClip.Core.XAction.Interface.DataObjectWriter.SetToClipboard() 在 BetterClip.Core.XAction.Steps.ClipboardActionStep.Execute(IExecuteContext context) 在 BetterClip.Core.XAction.ActionExecuteExtensions.Execute(IExecutable executable) 在 BetterClip.Service.Interface.XActionServiceExtensions.PasteWithClipboard(IXActionService service, Action`1 clipboardAction, IExecuteContext context, Boolean handle) 在 System.Threading.Tasks.Task.Execute() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 IntelliTools.Core.XAction.ClipItemExecuteExtensions.<PasteAsync>d__6.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 IntelliTools.Core.XAction.ClipItemExecuteExtensions.<PasteSequential>d__5.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)