New to Telerik Document ProcessingStart a free 30-day trial

Metadata describing a function argument including its name, expected type, description, and whether it is required or optional. Use this for function documentation and validation.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class ArgumentInfo

Inheritance: objectArgumentInfo

Constructors

Initializes a new instance of the ArgumentInfo class with metadata for a function argument, optionally supporting localization.

C#
public ArgumentInfo(string name, string description, ArgumentType type, bool isRequired = true, string nameLocalizationKey = null, string descriptionLocalizationKey = null)
Parameters:namestring

The name of the argument.

descriptionstring

The description of the argument.

typeArgumentType

The type type of the argument.

isRequiredbool

Boolean indicating whether the argument is required or optional. If it is required, it should be set to true.

nameLocalizationKeystring

The localization key of the name of the argument.

descriptionLocalizationKeystring

The localization key of the description of the argument.

Properties

The human-readable description explaining what the argument does.

C#
public string Description { get; }
Property Value:

The description.

The localization resource key for the argument description.

C#
public string DescriptionLocalizationKey { get; }
Property Value:

The description localization key.

The argument's display name.

C#
public string Name { get; }
Property Value:

The name.

The localization resource key for the argument name.

C#
public string NameLocalizationKey { get; }
Property Value:

The name localization key.

The expected data type for this argument.

C#
public ArgumentType Type { get; }
Property Value:

The type.