Share via


ValidateOptionsResult.Fail Method

Definition

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