Table of Contents

Class ArgumentValidationAttribute

Namespace
OneImlx.Terminal.Commands.Declarative
Assembly
OneImlx.Terminal.dll

Declares an ArgumentDescriptor validation attribute.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class ArgumentValidationAttribute : Attribute
Inheritance
ArgumentValidationAttribute
Inherited Members

Constructors

ArgumentValidationAttribute(string, Type, params object[])

Initialize a new instance.

public ArgumentValidationAttribute(string argumentId, Type validationAttribute, params object[] validationParams)

Parameters

argumentId string

The argument identifier.

validationAttribute Type

The argument validation attribute.

validationParams object[]

The validation attribute parameters.

Properties

ArgumentId

The argument identifier.

public string ArgumentId { get; }

Property Value

string

ValidationAttribute

The attribute validation attribute.

public Type ValidationAttribute { get; }

Property Value

Type

ValidationParams

The ValidationAttribute parameters.

public object[]? ValidationParams { get; }

Property Value

object[]

See Also