The documentation of method members "Copy", "Create", "CreateText", "WriteAllBytes", "WriteAllLines", "WriteAllText" does not mention that "UnauthorizedAccessException" will be thrown if any of those methods try to create/override existing file with the "Hidden" attribute.