System.Exception.Exception.Exception C# (CSharp) Method

Exception() protected method

protected Exception ( SerializationInfo info, StreamingContext context ) : System.Collections
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System.Collections
		protected Exception (SerializationInfo info, StreamingContext context)
		{
			if (info == null)
				throw new ArgumentNullException ("info");

			class_name          = info.GetString ("ClassName");
			message             = info.GetString ("Message");
			help_link           = info.GetString ("HelpURL");
			stack_trace         = info.GetString ("StackTraceString");
			_remoteStackTraceString  = info.GetString ("RemoteStackTraceString");
			remote_stack_index  = info.GetInt32  ("RemoteStackIndex");
			hresult             = info.GetInt32  ("HResult");
			source              = info.GetString ("Source");
			inner_exception     = (Exception) info.GetValue ("InnerException", typeof (Exception));

			try {
				_data = (IDictionary) info.GetValue ("Data", typeof (IDictionary));
			} catch (SerializationException) {
				// member did not exist in .NET 1.x
			}
		}

Same methods

Exception.Exception::Exception ( ) : System.Collections
Exception.Exception::Exception ( string message ) : System.Collections
Exception.Exception::Exception ( string message, Exception innerException ) : System.Collections