This topic has not yet been rated - Rate this topic

MethodAccessException Constructor ()

.NET Framework 1.1

Initializes a new instance of the MethodAccessException class, setting the Message property of the new instance to a system-supplied message that describes the error, such as "Attempt to access the method failed." This message takes into account the current system culture.

[Visual Basic]
Public Sub New()
[C#]
public MethodAccessException();
[C++]
public: MethodAccessException();
[JScript]
public function MethodAccessException();

Remarks

The following table shows the initial property values for an instance of MethodAccessException.

Property Value
InnerException A null reference (Nothing in Visual Basic).
Message The localized error message string.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

MethodAccessException Class | MethodAccessException Members | System Namespace | MethodAccessException Constructor Overload List

Did you find this helpful?
(1500 characters remaining)