/// <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; }
/// <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; }