13 private string[] args;
15 private string message;
37 res = (string)info.GetValue(
"res", typeof(
string));
38 args = (
string[])info.GetValue(
"args", typeof(
string[]));
44 if (current.
Name ==
"version")
46 text = (string)current.
Value;
51 message = CreateMessage(res, args);
65 base.GetObjectData(info, context);
66 info.AddValue(
"res", res);
67 info.AddValue(
"args", args);
68 info.AddValue(
"version",
"2.0");
88 : this(
"Xml_UserException", new string[1]
108 internal static XPathException Create(
string res,
string arg,
string arg2)
126 : this(res, args, null)
131 : base(CreateMessage(res, args), inner)
133 base.HResult = -2146231997;
138 private static string CreateMessage(
string res,
string[] args)
142 string text = Res.GetString(res, args);
145 text =
"UNKNOWN(" + res +
")";
151 return "UNKNOWN(" + res +
")";
Describes a set of security permissions applied to code. This class cannot be inherited.
XPathException(string message, Exception innerException)
Initializes a new instance of the T:System.Xml.XPath.XPathException class using the specified excepti...
Serves as the base class for system exceptions namespace.
override void GetObjectData(SerializationInfo info, StreamingContext context)
Streams all the T:System.Xml.XPath.XPathException properties into the T:System.Runtime....
XPathException()
Initializes a new instance of the T:System.Xml.XPath.XPathException class.
override string Message
Gets the description of the error condition for this exception.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
SecurityAction
Specifies the security actions that can be performed using declarative security.
XPathException(string message)
Initializes a new instance of the T:System.Xml.XPath.XPathException class with the specified exceptio...
Provides the exception thrown when an error occurs while processing an XPath expression.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The exception that is thrown if the main assembly does not contain the resources for the neutral cult...
Exception()
Initializes a new instance of the T:System.Exception class.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Specifies that the class can be serialized.
Holds the value, T:System.Type, and name of a serialized object.
XPathException(SerializationInfo info, StreamingContext context)
Uses the information in the T:System.Runtime.Serialization.SerializationInfo and T:System....
Provides a formatter-friendly mechanism for parsing the data in T:System.Runtime.Serialization....
object Value
Gets the value contained in the object.
string Name
Gets the name of the object.
bool MoveNext()
Updates the enumerator to the next item.