OverwriteMode Class

Summary

Specifies the overwrite mode during extraction, to overwrite files already present on disk.

Assembly
Cake.7zip.dll
Namespace
Cake.SevenZip.Switches
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["OverwriteMode"] class Type type-node

Syntax

public class OverwriteMode

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Properties

Name Value Summary
Overwrite OverwriteMode
Gets the Overwrite-Mode. Overwrite All existing files without prompt.
static
RenameExisting OverwriteMode
Gets the rename existing-Mode. auto rename existing file (for example, name.txt will be renamed to name_1.txt).
static
RenameExtracting OverwriteMode
Gets the rename extracting-Mode. aUto rename extracting file (for example, name.txt will be renamed to name_1.txt).
static
Skip OverwriteMode
Gets the skip-Mode. Skip extracting of existing files.
static

Methods

Name Value Summary
ToString() string

Extension Methods

Name Value Summary
Dump<OverwriteMode>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<OverwriteMode>(OverwriteMode[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<OverwriteMode>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<OverwriteMode>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<OverwriteMode>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<OverwriteMode>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin