Skip to content

T_Ifp_Validation_ValidationSeverity_WarningSeverity

Martin Strecker edited this page Mar 9, 2019 · 6 revisions

ValidationSeverity.WarningSeverity Class

A default severity. The ValidationSeverity.WarningSeverity indicates that an object violates a validation rule, but the user should # decide whether the process should be continued or canceled.

Inheritance Hierarchy

System.Object
  Ifp.Validation.ValidationSeverity
    Ifp.Validation.ValidationSeverity.WarningSeverity
Namespace: Ifp.Validation
Assembly: Ifp.Validation (in Ifp.Validation.dll) Version: 1.4.0

Syntax

C#

public class WarningSeverity : ValidationSeverity

VB

Public Class WarningSeverity
	Inherits ValidationSeverity

C++

public ref class WarningSeverity : public ValidationSeverity

F#

type WarningSeverity =  
    class
        inherit ValidationSeverity
    end

The ValidationSeverity.WarningSeverity type exposes the following members.

Constructors

 

Name Description
Public method ValidationSeverity.WarningSeverity Initializes a new instance of the ValidationSeverity.WarningSeverity class
  Back to Top

Properties

 

Name Description
Public property AllowsCancel Returns true to enable cancellation. (Overrides ValidationSeverity.AllowsCancel.)
Public property CausesCancel Returns false to allow continuation of the process. (Overrides ValidationSeverity.CausesCancel.)
Public property IsAnError If true the severity will be treated as an error and will be presented to the user. This is true for all severities except Success. (Inherited from ValidationSeverity.)
Protected property SeverityAsNumber Returns 20. (Overrides ValidationSeverity.SeverityAsNumber.)
  Back to Top

Methods

 

Name Description
Public method CompareTo Implements IComparable(T). Compares two ValidationSeverity objects by delegating to SeverityAsNumber. (Inherited from ValidationSeverity.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

Ifp.Validation Namespace

Clone this wiki locally