Show / Hide Table of Contents

Class ValidationResults

A collection of validation results.

Inheritance
object
ValidationResults
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ValidationResults : DeputyBase
Syntax (vb)
Public Class ValidationResults Inherits DeputyBase
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

Synopsis

Constructors

ValidationResults(ValidationResult[]?)

A collection of validation results.

Properties

IsSuccess

A collection of validation results.

Results

A collection of validation results.

Methods

Collect(ValidationResult)

A collection of validation results.

ErrorTreeList()

A collection of validation results.

Wrap(string)

Wrap up all validation results into a single tree node.

Constructors

ValidationResults(ValidationResult[]?)

A collection of validation results.

public ValidationResults(ValidationResult[]? results = null)
Parameters
results ValidationResult[]
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

Properties

IsSuccess

A collection of validation results.

public virtual bool IsSuccess { get; }
Property Value

bool

Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

Results

A collection of validation results.

public virtual ValidationResult[] Results { get; set; }
Property Value

ValidationResult[]

Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

Methods

Collect(ValidationResult)

A collection of validation results.

public virtual void Collect(ValidationResult result)
Parameters
result ValidationResult
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

ErrorTreeList()

A collection of validation results.

public virtual string ErrorTreeList()
Returns

string

Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;

            ValidationResult validationResult;

            var validationResults = new ValidationResults(new [] { validationResult });

Wrap(string)

Wrap up all validation results into a single tree node.

public virtual ValidationResult Wrap(string message)
Parameters
message string
Returns

ValidationResult

Remarks

If there are failures in the collection, add a message, otherwise return a success.

Back to top Generated by DocFX