Skybound.Gecko.GeckoElementExtensions.GetData C# (CSharp) Method

GetData() public static method

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
return string
        public static string GetData(this GeckoElement node, string dataAttributeName)
        {
            if (string.IsNullOrEmpty(dataAttributeName))
                throw new ArgumentException("attributeName");

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