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
- 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
- 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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.