Export (0) Print
Expand All

FileInfo Members

Provides instance methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects. This class cannot be inherited.

The following tables list the members exposed by the FileInfo type.

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework FileInfo Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path.
Top

  Name Description
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Attributes  Gets or sets the FileAttributes of the current FileSystemInfo.(inherited from FileSystemInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CreationTime  Gets or sets the creation time of the current FileSystemInfo object.(inherited from FileSystemInfo)
Public property CreationTimeUtc  Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.(inherited from FileSystemInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Directory Gets an instance of the parent directory.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework DirectoryName Gets a string representing the directory's full path.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Exists Overridden. Gets a value indicating whether a file exists.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Extension  Gets the string representing the extension part of the file.(inherited from FileSystemInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework FullName  Gets the full path of the directory or file.(inherited from FileSystemInfo)
Public property IsReadOnly Gets or sets a value that determines if the current file is read only.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework LastAccessTime  Gets or sets the time the current file or directory was last accessed.(inherited from FileSystemInfo)
Public property LastAccessTimeUtc  Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.(inherited from FileSystemInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework LastWriteTime  Gets or sets the time when the current file or directory was last written to.(inherited from FileSystemInfo)
Public property LastWriteTimeUtc  Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.(inherited from FileSystemInfo)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Length Gets the size, in bytes, of the current file.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Name Overridden. Gets the name of the file.
Top

  Name Description
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 Overridden. Permanently deletes a file.
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  Overloaded. Determines whether two Object instances are equal. (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)
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 Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
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 Overridden. Returns the path as a string.
Top

Community Additions

ADD
Show:
© 2014 Microsoft