IsoArchive.CreateEntry

CreateEntry(string, string)

Adds a file to the ISO image.

public IsoEntry CreateEntry(string name, string filePath)
ParameterTypeDescription
nameStringPath of the file in the ISO.
filePathStringPath of the file.

Return Value

The ISO entry composed.

Exceptions

exceptioncondition
ArgumentNullExceptionThe filePath is null.
ArgumentExceptionThe filePath is empty, contains only white spaces, or contains invalid characters.
UnauthorizedAccessExceptionAccess to file filePath is denied.
PathTooLongExceptionThe specified filePath exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
NotSupportedExceptionFile at filePath contains a colon (:) in the middle of the string.
IOExceptionAn I/O error occurred while opening the file.

See Also


CreateEntry(string, Stream)

Adds a file to the ISO image.

public IsoEntry CreateEntry(string name, Stream source)
ParameterTypeDescription
nameStringPath of the file in the ISO.
sourceStreamStream containing the file data.

Return Value

The ISO entry composed.

See Also


CreateEntry(string)

Adds a file to the ISO image.

public IsoEntry CreateEntry(string name)
ParameterTypeDescription
nameStringPath of the directory in the ISO.

Return Value

The ISO entry composed.

Exceptions

exceptioncondition
ArgumentNullExceptionname is null or empty.
InvalidOperationExceptionThe archive is opened for extraction.

See Also