Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​Options.​ValidateOptionsResult
Assembly: Microsoft.Extensions.Options
Inheritance: object → ValidateOptionsResult
Represents the result of an options validation.
Fields and Constants
public static readonly
ValidateOptionsResult
Skip
The result when validation was skipped due to name not matching.
public static readonly
ValidateOptionsResult
Success
The result when validation was successful.
Properties
public
bool
Failed
Gets a value that indicates whether validation failed.
public
string
FailureMessage
Gets the description of why validation failed.
public
System.​Collections.​Generic.​IEnumerable<​string>
Failures
Gets the full list of failures (can be multiple).
public
bool
Skipped
Gets a value that indicates whether validation was run.
public
bool
Succeeded
Gets a value that indicates whether validation was successful.
Methods
public static
ValidateOptionsResult
Fail​(System.​Collections.​Generic.​IEnumerable<​string> failures)
Returns a failure result.
Returns The failure result.
failures
The reasons for the failure.
public static
ValidateOptionsResult
Fail​(string failureMessage)
Returns a failure result.
Returns The failure result.
failureMessage
The reason for the failure.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object