This documentation is archived and is not being maintained.

MemberAccessException Class

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

For a list of all members of this type, see MemberAccessException Members.


[Visual Basic]
Public Class MemberAccessException
   Inherits SystemException
public class MemberAccessException : SystemException
public __gc class MemberAccessException : public SystemException
class MemberAccessException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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: Invoke of the System.Reflection classes, GetValue of the FieldInfo class, and DynamicInvoke 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.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

MemberAccessException Members | System Namespace | Exception | Handling and Throwing Exceptions