BuildMaster SDK Reference
Version:
AddFile(string path, System.DateTime lastWriteTimeUtc, Inedo.Agents.IFileOperationsExecuter fileOps) Method
Adds a file to the artifact.
Syntax
public
void AddFile(string path, System.DateTime lastWriteTimeUtc, Inedo.Agents.IFileOperationsExecuter fileOps)
Parameters
- path
- Type: string
The absolute path of the file to add to the artifact.
- lastWriteTimeUtc
- Type: System.DateTime
The last write time (in UTC) of the file.
- fileOps
- Type: Inedo.Agents.IFileOperationsExecuter
The Inedo.Agents.IFileOperationsExecuter which will be used to open the file.
Exceptions
System.ArgumentNullException
|
path is null (Nothing in Visual Basic) or empty, or fileOps is null (Nothing in Visual Basic).
|
System.ArgumentException
|
path is not contained by RootPath.
|
System.InvalidOperationException
|
has not been initialized.
|