System.Windows.Forms.Control.EndInvoke C# (CSharp) Method

EndInvoke() private method

private EndInvoke ( IAsyncResult asyncResult ) : object
asyncResult IAsyncResult
return object
		public object EndInvoke (IAsyncResult asyncResult)
		{
			//TODO: Fixme
						/*
			AsyncMethodResult result = (AsyncMethodResult) asyncResult;
			return result.EndInvoke ();
			*/
return null;
		}

Usage Example

		/// <summary>
		/// Shows standard decryption error UI within the context of a parent form
		/// </summary>
		public static DecryptionErrorAction OnDecryptionError(Control form, IContentEncryption encryptor)
		{
			if (form.InvokeRequired)
			{
				DecryptionErrorAction result = DecryptionErrorAction.Skip;
				IAsyncResult async = form.BeginInvoke(new MethodInvoker(delegate
				{
					result = ShowDecryptionErrorDialog(form, encryptor);
				}));
				form.EndInvoke(async);
				return result;
			}
			return ShowDecryptionErrorDialog(form, encryptor);
		}
All Usage Examples Of System.Windows.Forms.Control::EndInvoke
Control