exceptionhandlingtypehelper.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 31 行

CS
31
字号
using System;

namespace NetBpm.Workflow.Delegation
{
	public enum ExceptionHandlingType
	{
		ROLLBACK = 1,
		LOG = 2,
		IGNORE = 3,
	}

	public class ExceptionHandlingTypeHelper
	{
		public static ExceptionHandlingType FromText(String text)
		{
			if (text.Equals("rollback"))
			{
				return ExceptionHandlingType.ROLLBACK;
			}
			else if (text.Equals("log"))
			{
				return ExceptionHandlingType.LOG;
			}
			else if (text.Equals("ignore"))
			{
				return ExceptionHandlingType.IGNORE;
			}
			return 0;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?