FileInfo Members
Public Constructors
FileInfo Constructor Supported by the .NET Compact Framework. | Initializes a new instance of the FileInfo class, which acts as a wrapper for a file path. |
Public Properties
Attributes (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets or sets the FileAttributes of the current FileSystemInfo. |
CreationTime (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets or sets the creation time of the current FileSystemInfo object. |
CreationTimeUtc (inherited from FileSystemInfo) | Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object. |
Directory Supported by the .NET Compact Framework. | Gets an instance of the parent directory. |
DirectoryName Supported by the .NET Compact Framework. | Gets a string representing the directory's full path. |
Exists Supported by the .NET Compact Framework. | Overridden. Gets a value indicating whether a file exists. |
Extension (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets the string representing the extension part of the file. |
FullName (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets the full path of the directory or file. |
LastAccessTime (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets or sets the time the current file or directory was last accessed. |
LastAccessTimeUtc (inherited from FileSystemInfo) | Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. |
LastWriteTime (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Gets or sets the time when the current file or directory was last written to. |
LastWriteTimeUtc (inherited from FileSystemInfo) | Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. |
Length Supported by the .NET Compact Framework. | Gets the size of the current file. |
Name Supported by the .NET Compact Framework. | Overridden. Gets the name of the file. |
Public Methods
AppendText Supported by the .NET Compact Framework. | Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo. |
CopyTo Supported by the .NET Compact Framework. | Overloaded. Copies an existing file to a new file. |
Create Supported by the .NET Compact Framework. | Creates a file. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
CreateText Supported by the .NET Compact Framework. | Creates a StreamWriter that writes a new text file. |
Delete Supported by the .NET Compact Framework. | Overridden. Permanently deletes a file. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetObjectData (inherited from FileSystemInfo) | Sets the SerializationInfo object with the file name and additional exception information. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
MoveTo Supported by the .NET Compact Framework. | Moves a specified file to a new location, providing the option to specify a new file name. |
Open Supported by the .NET Compact Framework. | Overloaded. Opens a file with various read/write and sharing privileges. |
OpenRead Supported by the .NET Compact Framework. | Creates a read-only FileStream. |
OpenText Supported by the .NET Compact Framework. | Creates a StreamReader with UTF8 encoding that reads from an existing text file. |
OpenWrite Supported by the .NET Compact Framework. | Creates a write-only FileStream. |
Refresh (inherited from FileSystemInfo)
Supported by the .NET Compact Framework. | Refreshes the state of the object. |
ToString Supported by the .NET Compact Framework. | Overridden. Returns the fully qualified path as a string. |
Protected Fields
FullPath (inherited from FileSystemInfo) | Represents the fully qualified path of the directory or file. |
OriginalPath (inherited from FileSystemInfo) | The path originally specified by the user, whether relative or absolute. |
Protected Methods
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |

