Results<TResult1,TResult2,TResult3,TResult4,TResult5,TResult6> Class
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.
public sealed class Results<TResult1,TResult2,TResult3,TResult4,TResult5,TResult6> : Microsoft.AspNetCore.Http.INestedHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider where TResult1 : IResult where TResult2 : IResult where TResult3 : IResult where TResult4 : IResult where TResult5 : IResult where TResult6 : IResult
type Results<'TResult1, 'TResult2, 'TResult3, 'TResult4, 'TResult5, 'TResult6 (requires 'TResult1 :> IResult and 'TResult2 :> IResult and 'TResult3 :> IResult and 'TResult4 :> IResult and 'TResult5 :> IResult and 'TResult6 :> IResult)> = class
interface IResult
interface INestedHttpResult
interface IEndpointMetadataProvider
Public NotInheritable Class Results(Of TResult1, TResult2, TResult3, TResult4, TResult5, TResult6)
Implements IEndpointMetadataProvider, INestedHttpResult, IResult
- TResult1
The first result type.
- TResult2
The second result type.
- TResult3
The third result type.
- TResult4
The fourth result type.
- TResult5
The fifth result type.
- TResult6
The sixth result type.
- Inheritance
-
Results<TResult1,TResult2,TResult3,TResult4,TResult5,TResult6>
- Implements
An instance of this type cannot be created explicitly. Use the implicit cast operators to create an instance from an instance of one of the declared type arguments, e.g. Results<Ok, BadRequest> result = TypedResults.Ok();
Execute |
Write an HTTP response reflecting the result. |
IEndpoint |
Populates metadata for the related Endpoint and MethodInfo. |
Product | Versions |
---|---|
ASP.NET Core | 7.0, 8.0, 9.0 |