Export (0) Print
Expand All

FileSystemInfo Class

Provides the base class for both FileInfo and DirectoryInfo objects.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
<ComVisibleAttribute(True)> _
Public MustInherit Class FileSystemInfo

The FileSystemInfo type exposes the following members.

  NameDescription
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360FileSystemInfoInitializes a new instance of the FileSystemInfo class.
Top

  NameDescription
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360AttributesWhen called by trusted applications, gets or sets the FileAttributes of the current FileSystemInfo.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360CreationTimeWhen called by trusted applications, gets or sets the creation time of the current FileSystemInfo object.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360ExistsGets a value indicating whether the file or directory exists.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360ExtensionGets the string representing the extension part of the file.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360FullNameWhen called by trusted applications, gets the full path of the directory or file.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360LastAccessTimeWhen called by trusted applications, gets or sets the time the current file or directory was last accessed.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360LastWriteTimeWhen called by trusted applications, gets or sets the time when the current file or directory was last written to.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360NameFor files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the Name property gets the name of the directory.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360DeleteWhen called by trusted applications, deletes a file or directory.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360FinalizeAllows 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 360GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360RefreshRefreshes the state of the object.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Protected fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360FullPathInfrastructure. Represents the fully qualified path of the directory or file.
Protected fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360OriginalPathInfrastructure. The path originally specified by the user, whether relative or absolute.
Top

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

This type is present to support the .NET Compact Framework infrastructure in Silverlight for Windows Phone, and it is not intended to be used in your application code.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft