TargetException

TargetException ECMA 1.0, serializable

System.Reflection (mscorlib.dll) class

This exception is thrown when you attempt to invoke a nonstatic method on a null object reference. (Note that in Beta1 of the .NET SDK, it was permissible to call a nonvirtual method against a null reference, so long as that method didn't access any of the fields in the type. In Beta2 and beyond, this "feature" has been closed and removed.)

 public class  TargetException  : ApplicationException {  // Public Constructors  public  TargetException  ( );    public  TargetException  (string   message   );    public  TargetException  (string   message   , Exception   inner   );  // Protected Constructors  protected  TargetException  (System.Runtime.Serialization.SerializationInfo   info   ,        System.Runtime.Serialization.StreamingContext   context   ); } 

Hierarchy

System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.ApplicationException TargetException



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net