⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptionhandlingtypehelper.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -