ValidateOptionsResult.Fail Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Fail(IEnumerable<String>) |
Returns a failure result. |
Fail(String) |
Returns a failure result. |
Fail(IEnumerable<String>)
- Source:
- ValidateOptionsResult.cs
- Source:
- ValidateOptionsResult.cs
Returns a failure result.
public:
static Microsoft::Extensions::Options::ValidateOptionsResult ^ Fail(System::Collections::Generic::IEnumerable<System::String ^> ^ failures);
public static Microsoft.Extensions.Options.ValidateOptionsResult Fail (System.Collections.Generic.IEnumerable<string> failures);
static member Fail : seq<string> -> Microsoft.Extensions.Options.ValidateOptionsResult
Public Shared Function Fail (failures As IEnumerable(Of String)) As ValidateOptionsResult
Parameters
- failures
- IEnumerable<String>
The reasons for the failure.
Returns
The failure result.
Applies to
Fail(String)
- Source:
- ValidateOptionsResult.cs
- Source:
- ValidateOptionsResult.cs
Returns a failure result.
public:
static Microsoft::Extensions::Options::ValidateOptionsResult ^ Fail(System::String ^ failureMessage);
public static Microsoft.Extensions.Options.ValidateOptionsResult Fail (string failureMessage);
static member Fail : string -> Microsoft.Extensions.Options.ValidateOptionsResult
Public Shared Function Fail (failureMessage As String) As ValidateOptionsResult
Parameters
- failureMessage
- String
The reason for the failure.
Returns
The failure result.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.