ICallbackEventHandler.GetCallbackResult 方法

定义

返回以控件为目标的回调事件的结果。Returns the results of a callback event that targets a control.

public:
 System::String ^ GetCallbackResult();
public string GetCallbackResult ();
abstract member GetCallbackResult : unit -> string
Public Function GetCallbackResult () As String

返回

String

回调的结果。The result of the callback.

注解

中引发的异常 RaiseCallbackEvent 不会阻止 GetCallbackResult 调用并返回结果。Exceptions thrown in RaiseCallbackEvent will not prevent GetCallbackResult from being called and returning a result. 若要防止 GetCallbackResult 返回结果,请在中引发异常时设置标志, RaiseCallbackEvent 并从返回空字符串 GetCallbackResultTo prevent GetCallbackResult from returning a result, set a flag when an exception is thrown in RaiseCallbackEvent and return an empty string from GetCallbackResult.

适用于

另请参阅