TypedResults.Problem 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
| Problem(ProblemDetails) | Produces a ProblemDetails response. | 
| Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>) | Produces a ProblemDetails response. | 
| Problem(String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String,Object>>) | Produces a ProblemDetails response. | 
Problem(ProblemDetails)
- Source:
- TypedResults.cs
Produces a ProblemDetails response.
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails);static member Problem : Microsoft.AspNetCore.Mvc.ProblemDetails -> Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResultPublic Shared Function Problem (problemDetails As ProblemDetails) As ProblemHttpResultParameters
- problemDetails
- ProblemDetails
The ProblemDetails object to produce a response from.
Returns
The created ProblemHttpResult for the response.
Applies to
Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)
- Source:
- TypedResults.cs
Produces a ProblemDetails response.
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(string? detail, string? instance, int? statusCode, string? title, string? type, System.Collections.Generic.IDictionary<string,object?>? extensions);public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);static member Problem : string * string * Nullable<int> * string * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResultPublic Shared Function Problem (detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, extensions As IDictionary(Of String, Object)) As ProblemHttpResultPublic Shared Function Problem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional extensions As IDictionary(Of String, Object) = Nothing) As ProblemHttpResultParameters
- extensions
- IDictionary<String,Object>
The value for Extensions.
Returns
The created ProblemHttpResult for the response.
Applies to
Problem(String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String,Object>>)
Produces a ProblemDetails response.
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem(string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? extensions = default);static member Problem : string * string * Nullable<int> * string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResultPublic Shared Function Problem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional extensions As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As ProblemHttpResultParameters
- extensions
- IEnumerable<KeyValuePair<String,Object>>
The value for Extensions.
Returns
The created ProblemHttpResult for the response.