Ejemplo n.º 1
0
 /// <summary>
 /// Set the return value for the <see cref="CfxSchemeHandlerFactory.Create"/> callback.
 /// Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
 /// </summary>
 public void SetReturnValue(CfxResourceHandler returnValue)
 {
     CheckAccess();
     if (returnValueSet)
     {
         throw new CfxException("The return value has already been set");
     }
     returnValueSet     = true;
     this.m_returnValue = returnValue;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the return value for the <see cref="CfxSchemeHandlerFactory.Create"/> callback.
 /// Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
 /// </summary>
 public void SetReturnValue(CfxResourceHandler returnValue)
 {
     CheckAccess();
     if(returnValueSet) {
         throw new CfxException("The return value has already been set");
     }
     returnValueSet = true;
     this.m_returnValue = returnValue;
 }