Table of Contents

Class AddCommandParameters

Namespace
Kentico.Xperience.Admin.Base
Assembly
Kentico.Xperience.Admin.Base.dll
public record AddCommandParameters
Inheritance
object
AddCommandParameters
Extension Methods

Constructors

AddCommandParameters(AddCommandParameters)

protected AddCommandParameters(AddCommandParameters original)

Parameters

original AddCommandParameters

AddCommandParameters(string, string)

Initializes a new instance of the AddCommandParameters record.

public AddCommandParameters(string commandName, string label)

Parameters

commandName string
label string

Properties

ActionStateEvaluator

Action used for state evaluation per each row.

public Func<ActionConfiguration, IDataContainer, CancellationToken, Task> ActionStateEvaluator { get; init; }

Property Value

Func<ActionConfiguration, IDataContainer, CancellationToken, Task>

Remarks

Please use Task.CompletedTask when no async action is necessary.

CommandName

Unique action name.

public string CommandName { get; }

Property Value

string

ConfirmationParameters

Confirmation dialog parameters.

public ConfirmationWithContentParameters ConfirmationParameters { get; }

Property Value

ConfirmationWithContentParameters

Destructive

Indicates whether action is destructive.

public bool Destructive { get; init; }

Property Value

bool

Remarks

Destructive action is indicated by highlighted icon. By default set to false.

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Icon

Icon of the action.

public string Icon { get; init; }

Property Value

string

Label

Label of the action.

public string Label { get; }

Property Value

string

Title

Gets or sets the tooltip of a button.

public string Title { get; init; }

Property Value

string

Methods

Equals(AddCommandParameters?)

public virtual bool Equals(AddCommandParameters? other)

Parameters

other AddCommandParameters

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AddCommandParameters?, AddCommandParameters?)

public static bool operator ==(AddCommandParameters? left, AddCommandParameters? right)

Parameters

left AddCommandParameters
right AddCommandParameters

Returns

bool

operator !=(AddCommandParameters?, AddCommandParameters?)

public static bool operator !=(AddCommandParameters? left, AddCommandParameters? right)

Parameters

left AddCommandParameters
right AddCommandParameters

Returns

bool