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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET