DeleteCommandBuilder Class

Summary

Builder for DeleteCommand.
graph BT Type-->Base0["Object"] Type-.->Interface0["ISupportArgumentBuilder<IHaveArgumentArchive>"] Type-.->Interface1["ISupportArgumentBuilder<IHaveArgumentFiles>"] Type-.->Interface2["ISupportArgumentBuilder<IHaveArgumentDirectories>"] Type-.->Interface3["ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>"] Type-.->Interface4["ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>"] Type-.->Interface5["ISupportSwitchBuilder<ISupportSwitchCompressionMethod>"] Type-.->Interface6["ISupportSwitchBuilder<ISupportSwitchPassword>"] Type-.->Interface7["ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>"] Type-.->Interface8["ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>"] Type-.->Interface9["ISupportSwitchBuilder<ISupportSwitchUpdateOptions>"] Type-.->Interface10["ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>"] Type-.->Interface11["ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>"] Type-.->Interface12["ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>"] Type["DeleteCommandBuilder"] class Type type-node

Syntax

public sealed class DeleteCommandBuilder : ISupportArgumentBuilder<IHaveArgumentArchive>, 
    ISupportArgumentBuilder<IHaveArgumentFiles>, ISupportArgumentBuilder<IHaveArgumentDirectories>, 
    ISupportSwitchBuilder<ISupportSwitchIncludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchExcludeFilenames>, 
    ISupportSwitchBuilder<ISupportSwitchCompressionMethod>, 
    ISupportSwitchBuilder<ISupportSwitchPassword>, 
    ISupportSwitchBuilder<ISupportSwitchRecurseSubdirectories>, 
    ISupportSwitchBuilder<ISupportSwitchNtfsAlternateStreams>, 
    ISupportSwitchBuilder<ISupportSwitchUpdateOptions>, 
    ISupportSwitchBuilder<ISupportSwitchWorkingDirectory>, 
    ISupportSwitchBuilder<ISupportSwitchSelfExtractingArchive>, 
    ISupportSwitchBuilder<ISupportSwitchFullyQualifiedFilePaths>

Examples

Task("RemoveFiles")
    .Does(() =>
{
    SevenZip(m => m
      .InDeleteMode()
      .WithArchive(File("path/to/file.zip"))
      .WithFiles("*.pdf", "*.xps")
      .WithPassword("secure!"));
});

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Extension Methods

Name Value Summary
Dump<DeleteCommandBuilder>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DeleteCommandBuilder>(DeleteCommandBuilder[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DeleteCommandBuilder>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DeleteCommandBuilder>(string) void
Requires the Cake.Issues addin
ThrowIfNull<DeleteCommandBuilder>(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<DeleteCommandBuilder>(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
Requires the Cake.Issues addin

See Also