This documentation is archived and is not being maintained.

FieldAccessException Constructor ()

.NET Framework 1.1

Initializes a new instance of the FieldAccessException class.

[Visual Basic]
Public Sub New()
public FieldAccessException();
public: FieldAccessException();
public function FieldAccessException();


This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "Attempted to access a private or protected field inside a type." This message takes into account the current system culture.

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

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


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

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