Objects

DateTimeObject

A DateTimeObject is used to store information about a given DateTime. It stores the raw DateTime value as well as a DateTime format.

PropertyTypeDescription

Date

Stores the Date part of the DateTime

Time

Stores the Time part of the DateTime

Day

Int32

The Day of the month in the DateTime instance

DayOfTheYear

Int32

The Day of the Year in the DateTime instance

Month

Int32

The Month in the DateTime instance

Year

Int32

The Year in the DateTime instance

Hour

Int32

The Hour in the DateTime instance

Minute

Int32

The Minute in the DateTime instance

Second

Int32

The Secondin the DateTime instance

MilliSecond

Int32

The Milliseond in the DateTime instance

Value

String

The raw DateTime value as string

Format

String

The given DateTime format

FormattedDate

String

The DateTime Value converted using the Format

DateTimeInstance

The raw DateTime instance

{
  "Date": {
    "Year": 2022,
    "Month": 6,
    "Day": 20,
    "DayOfWeek": 1,
    "DayOfYear": 171,
    "DayNumber": 738325
  },
  "Time": {
    "Hour": 0,
    "Minute": 0,
    "Second": 0,
    "Millisecond": 0,
    "Ticks": 0
  },
  "DateTimeInstance": "2022-06-20T11:56:25",
  "Day": 20,
  "DayOfYear": 171,
  "Hour": 11,
  "Millisecond": 0,
  "Minute": 56,
  "Month": 6,
  "Second": 25,
  "Year": 2022,
  "FormattedDate": "20_06_2022 11:56 AM",
  "Name": null,
  "Format": "dd_MM_yyyy h:mm tt",
  "Value": "20-06-2022 11:56:25 AM"
}

DateObject

A DateObject is used to store information about a given Date.

PropertyTypeDescription

Day

Int32

The Day of the month in the DateTime instance

DayOfWeek

Int32

The Day of the Week in the DateTime instance

Month

Int32

The Month in the DateTime instance

Year

Int32

The Year in the DateTime instance

Value

String

The raw DateTime value as string

DateTimeInstance

The raw DateTime instance

{
  "DateInstance": "2023-05-26",
  "Day": 26,
  "DayOfWeek": "Friday",
  "Month": 5,
  "Year": 2023,
  "Name": "DateObjectVariable1",
  "Value": "05/26/2023 00:00:00"
}

FileObject

A FileObject is used to store information about a given file.

PropertyTypeDescription

DoesNotExist

Bool

Indicates if the file does not exist.

Exists

Bool

Indicates if the file exists.

Extension

String

Stores the extension of the file.

FileName

string

Stores the name of the file.

FileNameWithoutExt

string

Indicates the name of the file without extension.

Parent

string

Stores the parent folder path of the file.

LastModified

string

Indicates the LastModified DateTime of the file.

Created

string

Indicates the Created DateTime of the file.

FileSize

Int32

Stores the file size of the file.

Value

String

The full path of the file.

{
  "DoesNotExist": false,
  "Exists": true,
  "Extension": ".png",
  "FileName": "MicrosoftTeams-image (1).png",
  "FileNameWithoutExt": "MicrosoftTeams-image (1)",
  "Parent": "C:\\Users\\User\\Downloads",
  "LastModified": "05/25/2023 17:45:34",
  "Created": "05/25/2023 17:45:34",
  "FileSize": 14130,
  "Name": "FileObjectVariable2",
  "Value": "C:\\Users\\User\\Downloads\\MicrosoftTeams-image (1).png"
}

FolderObject

A FolderObject is used to store information about a given folder.

PropertyTypeDescription

DoesNotExist

Bool

Indicates if the folder does not exist.

Exists

Bool

Indicates if the folder exists.

FolderName

string

Stores the name of the folder.

Parent

string

Stores the parent folder path of the folder.

LastModified

string

Indicates the LastModified DateTime of the folder.

Created

string

Indicates the Created DateTime of the folder.

FilesCount

Int32

Stores the total file count in the folder

SubFoldersCount

Int32

Stores the total subfolder count in the folder.

Value

String

The full path of the folder.

IsEmpty

Bool

Indicates if the folder is empty.

IsNotEmpty

Bool

Indicates if the folder is not empty.

{
  "DoesNotExist": false,
  "Exists": true,
  "FolderName": "Downloads",
  "Parent": "C:\\Users\\User",
  "LastModified": "05/26/2023 14:55:41",
  "Created": "11/24/2022 15:16:35",
  "FilesCount": 160,
  "SubFoldersCount": 33,
  "Name": "FolderObjectVariable3",
  "Value": "C:\\Users\\User\\Downloads",
  "IsEmpty": false,
  "IsNotEmpty": true
}

ProcessObject

A ProcessObject is used to store information about a given process.

PropertyTypeDescription

NotRunning

Bool

Indicates if the process is not running.

Running

Bool

Indicates if the process is running.

Value

String

The name of the process.

{
  "NotRunning": true,
  "Running": false,
  "Name": "ProcessObjectVariable4",
  "Value": "svhost"
}

ApplicationObject

An ApplicationObject is used to store information about a given application.

PropertyTypeDescription

NotRunning

Bool

Indicates if the application is not running.

Running

Bool

Indicates if the application is running.

Value

String

The name of the application.

{
  "NotRunning": false,
  "Running": true,
  "Name": "ApplicationObjectVariable5",
  "Value": "C:\\Program Files\\Notepad++\\notepad++.exe"
}

ListObject

An ListObject is used to store a list of values.

PropertyTypeDescription

Capacity

Int32

Gets or sets the total number of elements the internal data structure can hold without resizing.

Count

Int32

Gets the number of elements contained in the List<T>.

Item

Int32

Gets or sets the element at the specified index.

Last updated