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

FileInfo Methods

The FileInfo type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AppendText Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CopyTo Overloaded. Copies an existing file to a new file.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Create Creates a file.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CreateText Creates a StreamWriter that writes a new text file.
Public method Decrypt Decrypts a file that was encrypted by the current account using the Encrypt method.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Delete Permanently deletes a file. (Overrides FileSystemInfo.Delete().)
Public method Encrypt Encrypts a file so that only the account used to encrypt the file can decrypt it.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAccessControl Overloaded. Gets a FileSecurity object that encapsulates the access control list (ACL) entries for the file described by the current FileInfo object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetObjectData Sets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Overloaded.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework MoveTo Moves a specified file to a new location, providing the option to specify a new file name.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Open Overloaded. Opens a file with various read/write and sharing privileges.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework OpenRead Creates a read-only FileStream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework OpenText Creates a StreamReader with UTF8 encoding that reads from an existing text file.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework OpenWrite Creates a write-only FileStream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Refresh Refreshes the state of the object. (Inherited from FileSystemInfo.)
Public method Replace Overloaded. 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.
Public method SetAccessControl Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns the path as a string. (Overrides Object.ToString().)
Top

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.