System.MemberAccessException Class

The exception that is thrown when an attempt to access a class member fails.

See Also: MemberAccessException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class MemberAccessException : SystemException

Remarks

MemberAccessException is the base class for FieldAccessException, MethodAccessException, MissingMemberException, MissingMethodException, and MissingFieldException. These exceptions are thrown when a class member is not found or access to the member is not permitted.

MemberAccessException is thrown by the following methods:

System.Reflection.MethodBase.Invoke(object, System.Reflection.BindingFlags, System.Reflection.Binder, Object[], System.Globalization.CultureInfo) of the System.Reflection classes, System.Reflection.FieldInfo.GetValue(object) of the System.Reflection.FieldInfo class, and Delegate.DynamicInvoke(Object[]) of the Delegate class.

MemberAccessException uses the HRESULT COR_E_MEMBERACCESS, that has the value 0x8013151A.

For a list of initial property values for an instance of MemberAccessException, see the MemberAccessException constructors.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0