Skybound.Gecko.GeckoElementExtensions.GetData C# (CSharp) Méthode

GetData() public static méthode

Gets the value of the data-xxx attributes
public static GetData ( this node, string dataAttributeName ) : string
node this
dataAttributeName string Microdata label in data-label attribute
Résultat string
        public static string GetData(this GeckoElement node, string dataAttributeName)
        {
            if (string.IsNullOrEmpty(dataAttributeName))
                throw new ArgumentException("attributeName");

            return node.GetAttribute("data-" + dataAttributeName);
        }
GeckoElementExtensions