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
- 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
- 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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET