FileInfo Methods
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | AppendText() | Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. |
![]() | CopyTo(String) | Copies an existing file to a new file, disallowing the overwriting of an existing file. |
![]() | CopyTo(String, Boolean) | Copies an existing file to a new file, allowing the overwriting of an existing file. |
![]() | Create() | Creates a file. |
![]() | CreateObjRef(Type) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | CreateText() | Creates a StreamWriter that writes a new text file. |
![]() | Decrypt() | Decrypts a file that was encrypted by the current account using the Encrypt method. |
![]() | Delete() | Permanently deletes a file.(Overrides FileSystemInfo.Delete().) |
![]() | Encrypt() | Encrypts a file so that only the account used to encrypt the file can decrypt it. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetAccessControl() | Gets a FileSecurity object that encapsulates the access control list (ACL) entries for the file described by the current FileInfo object. |
![]() | GetAccessControl(AccessControlSections) | Gets a FileSecurity object that encapsulates the specified type of access control list (ACL) entries for the file described by the current FileInfo object. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | Sets the SerializationInfo object with the file name and additional exception information.(Inherited from FileSystemInfo.) |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | MoveTo(String) | Moves a specified file to a new location, providing the option to specify a new file name. |
![]() | Open(FileMode) | Opens a file in the specified mode. |
![]() | Open(FileMode, FileAccess) | Opens a file in the specified mode with read, write, or read/write access. |
![]() | Open(FileMode, FileAccess, FileShare) | Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. |
![]() | OpenRead() | Creates a read-only FileStream. |
![]() | OpenText() | Creates a StreamReader with UTF8 encoding that reads from an existing text file. |
![]() | OpenWrite() | Creates a write-only FileStream. |
![]() | Refresh() | Refreshes the state of the object.(Inherited from FileSystemInfo.) |
![]() | Replace(String, String) | Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. |
![]() | Replace(String, String, Boolean) | Replaces the contents of a specified file with the file described by the current FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. |
![]() | SetAccessControl(FileSecurity) | Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object. |
![]() | ToString() | Returns the path as a string.(Overrides Object.ToString().) |
