Click or drag to resize

IActionConditionForTemplate Interface

Represents an action that conditionally copies project items to a target folder based on a specified condition. The action checks if a property in the property bag matches the specified condition value, and if it does, the associated project items are copied to the target folder.

Namespace: Altaxo.Serialization.NamePropertyExtraction
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntax
C#
public interface IActionConditionForTemplate : IActionOnProperty, 
	IImmutable

The IActionConditionForTemplate type exposes the following members.

Properties
 NameDescription
Public propertyDescription Gets or sets the description of the action.
(Inherited from IActionOnProperty)
Public propertyOverwriteProjectItems Gets or sets a value indicating whether existing items in the target folder should be overridden when copying the project items.
Public propertyProjectItemsUsedAsTemplate List of project items to be copied to the target folder if the condition is met.
Public propertyPropertyName Gets the name of the property that the action operates on. This property is required and must be initialized when implementing classes are instantiated.
(Inherited from IActionOnProperty)
Top
Methods
 NameDescription
Public methodMatches Evaluates whether the specified properties match the condition defined by this action. The condition is based on the property name and value specified in the action. If a property with the same name exists in the provided properties and its value matches the condition, the method returns true; otherwise, it returns false.
Top
See Also