BuildMaster SDK Reference
Version:
AddFile(string path, System.DateTime lastWriteTimeUtc, System.IO.Stream stream) Method
Adds a file to the artifact.
Syntax
public
void AddFile(string path, System.DateTime lastWriteTimeUtc, System.IO.Stream stream)
Parameters
- path
- Type: string
The relative (or absolute, if contained by the path specified in RootPath) path of the file to add to the artifact.
- lastWriteTimeUtc
- Type: System.DateTime
The last write time (in UTC) of the file.
- stream
- Type: System.IO.Stream
Contents of the file.
Exceptions
System.ArgumentNullException
|
path is null (Nothing in Visual Basic) or empty, or stream is null (Nothing in Visual Basic).
|
System.ArgumentException
|
path is an absolute path that is not contained by RootPath.
|
System.InvalidOperationException
|
path is an absolute path but has not been initialized.
|