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