コード例 #1
0
 /// <summary>
 /// Set the return value for the <see cref="CfxResponseFilter.Filter"/> callback.
 /// Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
 /// </summary>
 public void SetReturnValue(CfxResponseFilterStatus returnValue)
 {
     CheckAccess();
     if (returnValueSet)
     {
         throw new CfxException("The return value has already been set");
     }
     returnValueSet     = true;
     this.m_returnValue = returnValue;
 }
コード例 #2
0
ファイル: CfxResponseFilter.cs プロジェクト: xmcy0011/NanUI
 /// <summary>
 /// Set the return value for the <see cref="CfxResponseFilter.Filter"/> callback.
 /// Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
 /// </summary>
 public void SetReturnValue(CfxResponseFilterStatus returnValue)
 {
     CheckAccess();
     if(returnValueSet) {
         throw new CfxException("The return value has already been set");
     }
     returnValueSet = true;
     this.m_returnValue = returnValue;
 }