C# Класс Shared.Data.Extractors.WindowTitleArtifactExtractor

This class offers some methods to receive detailed information about an artifact, extracted from the programs, tracked by the WindowsActivityTracker Hint: The WindowsActivityTracker must be enabled to make use of the extractor
Показать файл Открыть проект

Открытые методы

Метод Описание
CleanWindowTitle ( string process, string title ) : string
GetArtifactDetails ( string process, string windowTitle ) : string

To get the file name and extension, we do the following; 1. change the process name if it is just applicationhost (Windows 10 apps) 2. remove unnecessary stuff like [Administrator] from the window title 3. remove program name from window title 4. get the file extension based on the window name and program

GetFileExtensionFromFileName ( string fileName ) : string

Returns the file extension from file name

GetFileNameFromPath ( string path ) : string

Returns the file name from a path

GetFileNameWithoutExtension ( string path ) : string

Returns the file name from a path

GetFilesWorkedOn ( DateTimeOffset date ) : List

Приватные методы

Метод Описание
GetFileExtensionsFromProcess ( string process ) : List

Get the file extension from the process name

GetSqlForProgramsToSearch ( ) : string
ValidateOrAddExtension ( string fileName, string process ) : string

Add a file extension if necessary

Описание методов

CleanWindowTitle() публичный статический Метод

public static CleanWindowTitle ( string process, string title ) : string
process string
title string
Результат string

GetArtifactDetails() публичный статический Метод

To get the file name and extension, we do the following; 1. change the process name if it is just applicationhost (Windows 10 apps) 2. remove unnecessary stuff like [Administrator] from the window title 3. remove program name from window title 4. get the file extension based on the window name and program
public static GetArtifactDetails ( string process, string windowTitle ) : string
process string
windowTitle string
Результат string

GetFileExtensionFromFileName() публичный статический Метод

Returns the file extension from file name
public static GetFileExtensionFromFileName ( string fileName ) : string
fileName string
Результат string

GetFileNameFromPath() публичный статический Метод

Returns the file name from a path
public static GetFileNameFromPath ( string path ) : string
path string
Результат string

GetFileNameWithoutExtension() публичный статический Метод

Returns the file name from a path
public static GetFileNameWithoutExtension ( string path ) : string
path string
Результат string

GetFilesWorkedOn() публичный статический Метод

public static GetFilesWorkedOn ( DateTimeOffset date ) : List
date DateTimeOffset
Результат List