TargetException Class (System.Reflection) (original) (raw)
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the exception that is thrown when an attempt is made to invoke an invalid target.
public ref class TargetException : ApplicationExceptionpublic ref class TargetException : Exceptionpublic class TargetException : ApplicationExceptionpublic class TargetException : Exception[System.Serializable]
public class TargetException : ApplicationException[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class TargetException : ApplicationExceptiontype TargetException = class
inherit ApplicationExceptiontype TargetException = class
inherit Exception[<System.Serializable>]
type TargetException = class
inherit ApplicationException[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TargetException = class
inherit ApplicationExceptionPublic Class TargetException
Inherits ApplicationExceptionPublic Class TargetException
Inherits ExceptionInheritance
Inheritance
Attributes
Remarks
A TargetException is thrown when an attempt is made to invoke a non-static method on a null object. This may occur because the caller does not have access to the member, or because the target does not define the member, and so on.