?? vsahandler.cs
字號:
using System;
using System.Configuration;
using System.Xml;
using DotNetTools.Util;
using DotNetTools.Workflow.Loader;
namespace DotNetTools.Workflow.Util.Vsa
{
/// <summary>
/// vsa configuration seciton handler
/// </summary>
/// <author>jjx</author>
public class VsaHandler : IConfigurationSectionHandler
{
public const String SECTION_NAME="dotnettools.workflow.util.vsa";
public object Create(object parent, object configContext, XmlNode section)
{
VsaConfig config=new VsaConfig();
XmlNodeList dl=section.SelectNodes("reference");
foreach(XmlNode node in dl)
{
String location=XMLUtil.GetAttribute(node,"location");
if (!TextUtils.HasText(location))
new ArgumentNullException("location required");
config.References.Add(location);
}
dl=section.SelectNodes("import");
foreach(XmlNode node in dl)
{
String ns=XMLUtil.GetAttribute(node,"namespace");
if (!TextUtils.HasText(ns))
new ArgumentNullException("namespace required");
config.Imports.Add(ns);
}
return config;
}
public VsaHandler()
{
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -