Implemented interface member:
property
ContentType
Microsoft.AspNetCore.Http.IContentTypeHttpResult.ContentType
1 write to ContentType
Microsoft.AspNetCore.Http.Results (1)
ContentHttpResult.cs (1)
35ContentType = contentType;
14 references to ContentType
Microsoft.AspNetCore.Http.Results (1)
ContentHttpResult.cs (1)
76ContentType);
Microsoft.AspNetCore.Http.Results.Tests (13)
ResultsTests.cs (6)
532Assert.Equal(mediaType.ToString(), result.ContentType); 549Assert.Equal("text/plain; charset=utf-8", result.ContentType); 567Assert.Equal("text/plain; charset=utf-8", result.ContentType); 1603Assert.Equal(contentType, result.ContentType); 1655Assert.Equal(expectedMediaType.ToString(), result.ContentType); 1675Assert.Equal(expectedMediaType.ToString(), result.ContentType);
TypedResultsTests.cs (7)
528Assert.Equal(mediaType.ToString(), result.ContentType); 545Assert.Equal("text/plain; charset=utf-8", result.ContentType); 563Assert.Equal("text/plain; charset=utf-8", result.ContentType); 1382Assert.Equal(contentType, result.ContentType); 1398Assert.Equal(contentType, result.ContentType); 1434Assert.Equal(expectedMediaType.ToString(), result.ContentType); 1454Assert.Equal(expectedMediaType.ToString(), result.ContentType);