AccessExceptionException public sealed class AccessException : Exception Show allType of exception thrown when the access level for data in a parameter doesn't match with the predefined level. AllConstructorsProperties ObsoleteInherited ConstructorsAccessException#public AccessException()AccessException#public AccessException(string message, Exception innerException)Parameters:message (string)innerException (Exception)AccessException#public AccessException(string message)Parameters:message (string)AccessException#public AccessException(string methodName, Access required, Access invoked)Create a new AccessException.Parameters:methodName (string)required (Access)invoked (Access)PropertiesInvokedAccess#public Access InvokedAccess { get; }Gets the access invoked by the caller.RequiredAccess#public Access RequiredAccess { get; }Gets the access as specified by the parameter.