System.Windows.Forms.BindingCompleteEventArgs.SetException C# (CSharp) Method

SetException() private method

private SetException ( Exception exception ) : void
exception System.Exception
return void
		internal void SetException (Exception exception)
		{
			this.exception = exception;
		}
	}

Usage Example

Example #1
0
        void FireBindingComplete(BindingCompleteContext context, Exception exc, string error_message)
        {
            BindingCompleteEventArgs args = new BindingCompleteEventArgs(this,
                                                                         exc == null ? BindingCompleteState.Success : BindingCompleteState.Exception,
                                                                         context);

            if (exc != null)
            {
                args.SetException(exc);
                args.SetErrorText(error_message);
            }

            OnBindingComplete(args);
        }
All Usage Examples Of System.Windows.Forms.BindingCompleteEventArgs::SetException