Acme.PROJECTNAME.Install.XmlHelper.GetAttribute C# (CSharp) Метод

GetAttribute() публичный статический Метод

public static GetAttribute ( XmlNode node, string attributeName, System.Guid defaultValue ) : System.Guid
node System.Xml.XmlNode
attributeName string
defaultValue System.Guid
Результат System.Guid
		public static Guid GetAttribute(XmlNode node, string attributeName, Guid defaultValue)
		{
			XmlAttribute attr = node.Attributes[attributeName];
			if (attr == null)
				attr = node.Attributes[attributeName.ToLower()];

			if (attr == null)
				return defaultValue;
			else
				return new Guid(attr.Value);
		}

Same methods

XmlHelper::GetAttribute ( XmlNode node, string attributeName, bool defaultValue ) : bool
XmlHelper::GetAttribute ( XmlNode node, string attributeName, double defaultValue ) : double
XmlHelper::GetAttribute ( XmlNode node, string attributeName, int defaultValue ) : int
XmlHelper::GetAttribute ( XmlNode node, string attributeName, long defaultValue ) : long
XmlHelper::GetAttribute ( XmlNode node, string attributeName ) : string
XmlHelper::GetAttribute ( XmlNode node, string attributeName, string defaultValue ) : string