Brecham.Obex — An OBEX library for the .NET Framework

ObexXmlUtilities.CreateXmlException Method 

Create an XmlException including the given message and the line number and position on the line as the exceptions thrown by the FCL's XmlReaders do.

[Visual Basic]
Public Shared Function CreateXmlException( _
   ByVal xr As XmlReader, _
   ByVal message As String _
) As XmlException
[C#]
public static XmlException CreateXmlException(
   XmlReader xr,
   string message
);

Parameters

xr
The XmlReader that is active. The line and character postions will be read from it, if it supports those properties.
message
The exception message.

Return Value

Remarks

The message on the resultant exception will be of the form:

<message> + " Line <L>, position <M>."

See Also

ObexXmlUtilities Class | Brecham.Obex.Objects Namespace