System.Xml.Linq.XmlHelper.GetXElement C# (CSharp) Méthode

GetXElement() public méthode

获取xPath匹配到的第一个元素
public GetXElement ( string xPath ) : System.Xml.Linq.XElement
xPath string xPath表达式
Résultat System.Xml.Linq.XElement
        public XElement GetXElement(string xPath)
        {
            return _doc.XPathSelectElement(xPath);
        }