Edit

Share via


FileInfo Class

Definition

public ref class FileInfo sealed : Microsoft::IO::FileSystemInfo
public sealed class FileInfo : Microsoft.IO.FileSystemInfo
type FileInfo = class
    inherit FileSystemInfo
Public NotInheritable Class FileInfo
Inherits FileSystemInfo
Inheritance

Constructors

FileInfo(String)

Fields

FullPath (Inherited from FileSystemInfo)
OriginalPath (Inherited from FileSystemInfo)

Properties

Attributes (Inherited from FileSystemInfo)
CreationTime (Inherited from FileSystemInfo)
CreationTimeUtc (Inherited from FileSystemInfo)
Directory
DirectoryName
Exists (Inherited from FileSystemInfo)
Extension (Inherited from FileSystemInfo)
FullName (Inherited from FileSystemInfo)
IsReadOnly
LastAccessTime (Inherited from FileSystemInfo)
LastAccessTimeUtc (Inherited from FileSystemInfo)
LastWriteTime (Inherited from FileSystemInfo)
LastWriteTimeUtc (Inherited from FileSystemInfo)
Length
LinkTarget (Inherited from FileSystemInfo)
Name (Inherited from FileSystemInfo)

Methods

AppendText()
CopyTo(String, Boolean)
CopyTo(String)
Create()
CreateAsSymbolicLink(String) (Inherited from FileSystemInfo)
CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
CreateText()
Decrypt()
Delete()
Encrypt()
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext) (Inherited from FileSystemInfo)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
MoveTo(String, Boolean)
MoveTo(String)
Open(FileMode, FileAccess, FileShare)
Open(FileMode, FileAccess)
Open(FileMode)
OpenRead()
OpenText()
OpenWrite()
Refresh() (Inherited from FileSystemInfo)
Replace(String, String, Boolean)
Replace(String, String)
ResolveLinkTarget(Boolean) (Inherited from FileSystemInfo)
ToString() (Inherited from FileSystemInfo)

Applies to