Represents a failed attempt to access a type member (method, field, etc.).
Object
Exception
SystemException
AccessException
[Visual Basic] Public Class AccessException Inherits SystemException [C#] public class AccessException : SystemException [C++] public __gc class AccessException : public SystemException [JScript] public class AccessException extends SystemException
AccessException is thrown by the following methods: Invoke of the System.Reflection Namespace classes (see ConstructorInfo, MethodInfo, etc.), GetValue and SetValue of the FieldInfo, DynamicInvoke of the delegate classes (see Delegate).
Namespace: System
Assembly: mscorlib.dll