Click or drag to resize
IPlatform Interface
The system Platform upon which the Application runs.

Namespace: OpenIIoT.SDK.Platform
Assembly: OpenIIoT.SDK (in OpenIIoT.SDK.dll) Version: 0.5.0.39086
Syntax
public interface IPlatform

The IPlatform type exposes the following members.

Properties
  NameDescription
Public propertyDirectories
Gets a Dictionary containing all of the application directories, loaded from the App.config.
Public propertyItemProvider
Gets the Item Provider for the Platform.
Public propertyPlatformType
Gets the Platform Type.
Public propertyVersion
Gets the Version of the Platform OS.
Top
Methods
  NameDescription
Public methodClearDirectory
Deletes all files and subdirectories within the supplied directory.
Public methodComputeFileChecksum
Computes the checksum of the specified file using the SHA256 hashing algorithm.
Public methodCopyFile(String, String)
Copies the specified source file to the specified destination file.
Public methodCopyFile(String, String, Boolean)
Copies the specified source file to the specified destination file, overwriting if the destination file exists and the overwrite parameter is true.
Public methodCreateDirectory
Creates the supplied directory.
Public methodCreateZip
Creates the specified zip file from the specified directory.
Public methodDeleteDirectory
Deletes the specified directory.
Public methodDeleteFile
Deletes the specified file.
Public methodDirectoryExists
Returns true if the specified directory exists, false otherwise.
Public methodExtractZip
Extracts the contents of the supplied zip file to the specified destination, clearing the destination first if clearDestination is true.
Public methodExtractZipFile
Extracts the supplied file from the supplied zip file to the supplied destination, overwriting the file if overwrite is true.
Public methodFileExists
Returns true if the specified file exists, false otherwise.
Public methodListDirectories(String)
Returns a list of subdirectories within the specified directory.
Public methodListDirectories(String, String)
Returns a list of subdirectories within the specified directory.
Public methodListFiles(String)
Returns a list of files within the specified directory matching the supplied searchPattern.
Public methodListFiles(String, String)
Returns a list of files within the specified directory matching the supplied searchPattern.
Public methodListZipFiles
Returns a list of files contained within the specified zip file matching the supplied searchPattern.
Public methodReadFileBytes
Reads the contents of the specified file into a byte array.
Public methodReadFileLines
Reads the contents of the specified file into a string array.
Public methodReadFileText
Reads the contents of the specified file into a single string.
Public methodWriteFileBytes
Writes the contents of the supplied byte array into the specified file. If the destination file already exists it is overwritten.
Public methodWriteFileLines
Writes the contents of the specified string array into the specified file. If the destination file already exists it is overwritten.
Public methodWriteFileText
Writes the contents of the supplied string into the specified file. If the destination file already exists it is overwritten.
Top
See Also