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.​OptionsValidationException
Assembly: Microsoft.Extensions.Options
Inheritance: object → System.​Exception → OptionsValidationException
Implemented Interfaces
- System.​Runtime.​Serialization.​ISerializable Implemented by: Exception
Represents the exception that's thrown when options validation fails.
Properties
public
System.​Collections.​Generic.​IEnumerable<​string>
Failures
Gets the validation failures.
public
string
Message
Gets a semicolon-separated list of the <see cref="P:Microsoft.Extensions.Options.OptionsValidationException.Failures" /> .
public
string
OptionsName
Gets the name of the options instance that failed.
public
System.​Type
OptionsType
Gets the type of the options that failed.
public
string
HelpLink
public
int
HResult
InnerException
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(System.​Runtime.​Serialization.​SerializationInfo info,
System.​Runtime.​Serialization.​StreamingContext context)
Inherited from System.​Exception
public
System.​Type
GetType​()
Inherited from System.​Exception
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