Freigeben über


ExtensionMethods.GetIntAttribute(XmlReader, String, Int32) Method

Definition

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

Returns

Applies to