Table of Contents

Class WildcardExpressionAttribute

Namespace
Acuit.Pinpoint.Common.Validation
Assembly
Acuit.Pinpoint.Common.dll

Specify that a member must validate as a valid wildcard expression.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class WildcardExpressionAttribute : ValidationAttribute, _Attribute
Inheritance
WildcardExpressionAttribute
Implements
Inherited Members

Constructors

WildcardExpressionAttribute()

Initializes a new instance of the WildcardExpressionAttribute class.

public WildcardExpressionAttribute()

Properties

SqlLike

Gets or sets whether the wildcard expression must be convertible to a SQL LIKE expression.

public bool SqlLike { get; set; }

Property Value

bool

SupportCaptures

Gets or sets whether the wildcard expression should support captures.

public bool SupportCaptures { get; set; }

Property Value

bool

Methods

FormatErrorMessage(string)

Applies formatting to an error message, based on the data field where the error occurred.

public override string FormatErrorMessage(string name)

Parameters

name string

The name to include in the formatted message.

Returns

string

An instance of the formatted error message.

IsValid(object)

Checks whether the specified object is valid.

public override bool IsValid(object value)

Parameters

value object

The value of the object to validate.

Returns

bool

true if the specified value is valid; otherwise, false.