Table of Contents

Class MessageIfFailAttribute

Namespace
SunamoAttributes
Assembly
SunamoAttributes.dll

Attribute to specify a custom error message to be displayed if validation or operation fails.

public class MessageIfFailAttribute : Attribute
Inheritance
MessageIfFailAttribute
Inherited Members
Extension Methods

Constructors

MessageIfFailAttribute(string)

Initializes a new instance of the MessageIfFailAttribute class with the specified error message.

public MessageIfFailAttribute(string message)

Parameters

message string

The error message to display on failure.

Properties

Message

Gets or sets the error message to be displayed on failure.

public string Message { get; set; }

Property Value

string