FileInfo Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The FileInfo type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 AppendText When it is called by trusted applications, creates a StreamWriter that appends text to the file represented by this instance of the FileInfo.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CopyTo(String) When it is called by trusted applications, copies an existing file to a new file, disallowing the overwriting of an existing file.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CopyTo(String, Boolean) When it is called by trusted applications, copies an existing file to a new file, allowing the overwriting of an existing file.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Create When it is called by trusted applications, creates a file.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 CreateText When it is called by trusted applications, creates a StreamWriter that writes a new text file.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Delete When it is called by trusted applications, permanently deletes a file. (Overrides FileSystemInfo.Delete().)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 MoveTo When it is called by trusted applications, moves a specified file to a new location, providing the option to specify a new file name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Open(FileMode) When it is called by trusted applications, opens a file in the specified mode.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Open(FileMode, FileAccess) When it is called by trusted applications, opens a file in the specified mode with read, write, or read/write access.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Open(FileMode, FileAccess, FileShare) When it is called by trusted applications, opens a file in the specified mode with read, write, or read/write access and the specified sharing option.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OpenRead Creates a read-only FileStream.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OpenText Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OpenWrite When it is called by trusted applications, creates a write-only FileStream.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString Returns the path as a string. (Overrides Object.ToString().)

Top

See Also

Reference