NuGetPackageValidationResult Class

Represents the result of a NuGet package validation operation.

public sealed class NuGetPackageValidationResult

Constructors

NameDescription
NuGetPackageValidationResult(IReadOnlyCollection<NuGetPackageValidationError>)Initializes a new instance of the NuGetPackageValidationResult class.

NuGetPackageValidationResult(IReadOnlyCollection<NuGetPackageValidationError>)

NuGetPackageValidationResult.cs

Initializes a new instance of the NuGetPackageValidationResult class.

public NuGetPackageValidationResult(IReadOnlyCollection<NuGetPackageValidationError> errors)

Parameters

errors IReadOnlyCollection<NuGetPackageValidationError>
The collection of validation errors found during the validation process.

Properties

NameDescription
ErrorsGets the collection of validation errors found during the validation process.
IsValidGets a value indicating whether the package passed all validation rules without any errors.

Gets the collection of validation errors found during the validation process.

Gets a value indicating whether the package passed all validation rules without any errors.

public bool IsValid { get; }

Property value

bool