MultipartSectionConverterExtensions.GetContentDispositionHeader Method

Definition

Retrieves and parses the content disposition header from a section

C#
public static Microsoft.Net.Http.Headers.ContentDispositionHeaderValue GetContentDispositionHeader (this Microsoft.AspNetCore.WebUtilities.MultipartSection section);
C#
public static Microsoft.Net.Http.Headers.ContentDispositionHeaderValue? GetContentDispositionHeader (this Microsoft.AspNetCore.WebUtilities.MultipartSection section);

Parameters

section
MultipartSection

The section from which to retrieve

Returns

A ContentDispositionHeaderValue if the header was found, null otherwise

Applies to

Produkt Verzie
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0