Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Net.​Http.​Headers.​ContentDispositionHeaderValue
Assembly: Microsoft.Net.Http.Headers
Inheritance: object → ContentDispositionHeaderValue
Represents the value of a <c>Content-Disposition</c> header.
Remarks
Note this is for use both in HTTP ( <see href="https://tools.ietf.org/html/rfc6266" /> ) and MIME ( <see href="https://tools.ietf.org/html/rfc2183" /> ).
Properties
DispositionType
Gets or sets a content disposition type.
public
System.​Collections.​Generic.​IList<​NameValueHeaderValue>
Parameters
Gets a collection of parameters included the <c>Content-Disposition</c> header.
Gets or sets the name of the content body part.
Gets or sets a value that suggests how to construct a filename for storing the message payload
to be used if the entity is detached and stored in a separate file.
FileNameStar
Gets or sets a value that suggests how to construct filenames for storing message payloads
to be used if the entities are detached and stored in a separate files.
CreationDate
Gets or sets the <see cref="T:System.DateTimeOffset" /> at which the file was created.
ModificationDate
Gets or sets the <see cref="T:System.DateTimeOffset" /> at which the file was last modified.
ReadDate
Gets or sets the <see cref="T:System.DateTimeOffset" /> at which the file was last read.
public
long?
Size
Gets or sets the approximate size, in bytes, of the file.
Methods
public
void
SetHttpFileName​(Extensions.​Primitives.​StringSegment fileName)
Sets both FileName and FileNameStar using encodings appropriate for HTTP headers.
public
void
SetMimeFileName​(Extensions.​Primitives.​StringSegment fileName)
Sets the FileName parameter using encodings appropriate for MIME headers.
The FileNameStar parameter is removed.
public
string
ToString​()
public
bool
Equals​(object obj)
public
int
GetHashCode​()
public static
ContentDispositionHeaderValue
Parse​(Extensions.​Primitives.​StringSegment input)
Parses <paramref name="input" /> as a <see cref="T:Microsoft.Net.Http.Headers.ContentDispositionHeaderValue" /> value.
Returns The parsed values.
input
The values to parse.
public static
bool
TryParse​(Extensions.​Primitives.​StringSegment input,
ContentDispositionHeaderValue& parsedValue)
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object