ExtensionMethods.GetIntAttribute(XmlReader, String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a named attribute from the current node in the given XmlReader as an int
public static int GetIntAttribute (this System.Xml.XmlReader reader, string attributeName, int defaultValue = 0);
static member GetIntAttribute : System.Xml.XmlReader * string * int -> int
<Extension()>
Public Function GetIntAttribute (reader As XmlReader, attributeName As String, Optional defaultValue As Integer = 0) As Integer
Parameters
- reader
- XmlReader
- attributeName
- String
- defaultValue
- Int32