Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FileInfo Methods

 

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

NameDescription
System_CAPS_pubmethodAppendText()

Creates a StreamWriter that appends text to the file represented by this instance of the FileInfo.

System_CAPS_pubmethodCopyTo(String)

Copies an existing file to a new file, disallowing the overwriting of an existing file.

System_CAPS_pubmethodCopyTo(String, Boolean)

Copies an existing file to a new file, allowing the overwriting of an existing file.

System_CAPS_pubmethodCreate()

Creates a file.

System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodCreateText()

Creates a StreamWriter that writes a new text file.

System_CAPS_pubmethodDecrypt()

Decrypts a file that was encrypted by the current account using the Encrypt method.

System_CAPS_pubmethodDelete()

Permanently deletes a file.(Overrides FileSystemInfo.Delete().)

System_CAPS_pubmethodEncrypt()

Encrypts a file so that only the account used to encrypt the file can decrypt it.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetAccessControl()

Gets a FileSecurity object that encapsulates the access control list (ACL) entries for the file described by the current FileInfo object.

System_CAPS_pubmethodGetAccessControl(AccessControlSections)

Gets a FileSecurity object that encapsulates the specified type of access control list (ACL) entries for the file described by the current FileInfo object.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo object with the file name and additional exception information.(Inherited from FileSystemInfo.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodMoveTo(String)

Moves a specified file to a new location, providing the option to specify a new file name.

System_CAPS_pubmethodOpen(FileMode)

Opens a file in the specified mode.

System_CAPS_pubmethodOpen(FileMode, FileAccess)

Opens a file in the specified mode with read, write, or read/write access.

System_CAPS_pubmethodOpen(FileMode, FileAccess, FileShare)

Opens a file in the specified mode with read, write, or read/write access and the specified sharing option.

System_CAPS_pubmethodOpenRead()

Creates a read-only FileStream.

System_CAPS_pubmethodOpenText()

Creates a StreamReader with UTF8 encoding that reads from an existing text file.

System_CAPS_pubmethodOpenWrite()

Creates a write-only FileStream.

System_CAPS_pubmethodRefresh()

Refreshes the state of the object.(Inherited from FileSystemInfo.)

System_CAPS_pubmethodReplace(String, String)

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.

System_CAPS_pubmethodReplace(String, String, Boolean)

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. Also specifies whether to ignore merge errors.

System_CAPS_pubmethodSetAccessControl(FileSecurity)

Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileInfo object.

System_CAPS_pubmethodToString()

Returns the path as a string.(Overrides Object.ToString().)

Return to top
Show:
© 2017 Microsoft