FileObject Class

Definition

Represents a File object.

public ref class FileObject : Microsoft::PowerPlatform::PowerAutomate::Desktop::Actions::SDK::Types::FileSystemObject, IComparable<Microsoft::PowerPlatform::PowerAutomate::Desktop::Actions::SDK::Types::FileObject ^>
[Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes.Type(DefaultPropertyVisibility=Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Enums.Visibility.Visible)]
[Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptOut)]
public class FileObject : Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Types.FileSystemObject, IComparable<Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Types.FileObject>
[<Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes.Type(DefaultPropertyVisibility=Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Enums.Visibility.Visible)>]
[<Newtonsoft.Json.JsonObject(Newtonsoft.Json.MemberSerialization.OptOut)>]
type FileObject = class
    inherit FileSystemObject
    interface IComparable<FileObject>
Public Class FileObject
Inherits FileSystemObject
Implements IComparable(Of FileObject)
Inheritance
Attributes
TypeAttribute Newtonsoft.Json.JsonObjectAttribute
Implements

Constructors

FileObject()

Initializes a new instance of the FileObject class.

FileObject(String)

Initializes a new instance of the FileObject class.

Properties

CreationTime

Gets the date the file was created.

Directory

Gets the file's directory.

Exists

Gets a value indicating whether the file exists.

Extension

Gets the file's extension.

FullName

Gets or sets the file's full name.

IsArchive

Gets or sets a value indicating whether the file is an archive.

IsEmpty

Gets a value indicating whether the file is empty.

IsHidden

Gets or sets a value indicating whether the file is hidden.

IsReadOnly

Gets or sets a value indicating whether the file is readonly.

IsSystem

Gets or sets a value indicating whether the file is a system file.

LastAccessed

Gets the date the file was last accessed.

LastModified

Gets or sets the date the file was last modified.

Name

Gets the file's name.

NameWithoutExtension

Gets the file's name without the extension.

RootPath

Gets the file's root path.

Size

Gets the file's size in bytes.

Methods

CompareTo(FileObject)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

ToString() (Inherited from FileSystemObject)

Operators

Implicit(String to FileObject)

Implicit operator for FileObject.

Applies to