Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FileInfo Methods

The FileInfo type exposes the following members.

  Name Description
Public method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported by Xbox 360 Create When it is called by trusted applications, creates a file.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 CreateText When it is called by trusted applications, creates a StreamWriter that writes a new text file.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Delete When it is called by trusted applications, permanently deletes a file. (Overrides FileSystemInfo.Delete().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported by Xbox 360 Open(FileMode) When it is called by trusted applications, opens a file in the specified mode.
Public method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported 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 method Supported by Silverlight for Windows Phone Supported by Xbox 360 OpenRead Creates a read-only FileStream.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 OpenText Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 OpenWrite When it is called by trusted applications, creates a write-only FileStream.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString Returns the path as a string. (Overrides Object.ToString().)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.