Show / Hide Table of Contents

Struct Trap

Procedure thrown by an interruption. Contains the list of actions to execute.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Namespace: UrlLib
Assembly: UrlLib.dll
Syntax
public struct Trap

Constructors

Trap(String, List<CoreAction>)

Constructor for a variable of trap type

Declaration
[JsonConstructor]
public Trap(string name, List<CoreAction> actions)
Parameters
Type Name Description
System.String name

Trap name

System.Collections.Generic.List<UrlLib.CoreAction> actions

List of actions

Properties

Actions

List of actions to execute

Declaration
[JsonInclude]
public List<CoreAction> Actions { get; set; }
Property Value
Type Description
System.Collections.Generic.List<UrlLib.CoreAction>

Name

Trap name

Declaration
[JsonInclude]
public string Name { get; set; }
Property Value
Type Description
System.String

Methods

CleanName(String)

Get the trap name by removing special characters

Declaration
public string CleanName(string replaceString = "_")
Parameters
Type Name Description
System.String replaceString

Character to be exchanged for special characters

Returns
Type Description
System.String

Name without special characters

In This Article
Back to top Wepall 2021. All rights reserved.