Implemented interface member:
property
StatusCode
Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode
2 writes to StatusCode
Microsoft.AspNetCore.Http.Results (2)
JsonHttpResultOfT.cs (2)
37StatusCode = statusCode; 58StatusCode = statusCode;
13 references to StatusCode
Microsoft.AspNetCore.Http.Results (1)
JsonHttpResultOfT.cs (1)
97if (StatusCode is { } statusCode)
Microsoft.AspNetCore.Http.Results.Tests (12)
JsonResultTests.cs (1)
239Assert.Equal(StatusCodes.Status413RequestEntityTooLarge, result.StatusCode);
ResultsTests.cs (7)
945Assert.Equal(statusCode, result.StatusCode); 964Assert.Equal(statusCode, result.StatusCode); 977Assert.Null(result.StatusCode); 990Assert.Null(result.StatusCode); 1004Assert.Null(result.StatusCode); 1018Assert.Null(result.StatusCode); 1032Assert.Null(result.StatusCode);
TypedResultsTests.cs (4)
840Assert.Equal(statusCode, result.StatusCode); 856Assert.Null(result.StatusCode); 872Assert.Null(result.StatusCode); 889Assert.Null(result.StatusCode);