ContentDispositionHeaderValue Class

Namespace
Microsoft.Net.Http.Headers
Assemblies
  • Microsoft.Net.Http.Headers

Syntax

public class ContentDispositionHeaderValue
class Microsoft.Net.Http.Headers.ContentDispositionHeaderValue

Constructors

ContentDispositionHeaderValue(System.String)
public ContentDispositionHeaderValue(string dispositionType)

Properties

Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.CreationDate
Return type:System.Nullable<System.DateTimeOffset>
public DateTimeOffset? CreationDate { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.DispositionType
Return type:System.String
public string DispositionType { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.FileName
Return type:System.String
public string FileName { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.FileNameStar
Return type:System.String
public string FileNameStar { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.ModificationDate
Return type:System.Nullable<System.DateTimeOffset>
public DateTimeOffset? ModificationDate { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.Name
Return type:System.String
public string Name { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.Parameters
Return type:System.Collections.Generic.IList<Microsoft.Net.Http.Headers.NameValueHeaderValue>
public IList<NameValueHeaderValue> Parameters { get; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.ReadDate
Return type:System.Nullable<System.DateTimeOffset>
public DateTimeOffset? ReadDate { get; set; }
Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.Size
Return type:System.Nullable<System.Int64>
public long ? Size { get; set; }

Methods

Equals(System.Object)
Return type:System.Boolean
public override bool Equals(object obj)
GetHashCode()
Return type:System.Int32
public override int GetHashCode()
Parse(System.String)
Return type:Microsoft.Net.Http.Headers.ContentDispositionHeaderValue
public static ContentDispositionHeaderValue Parse(string input)
SetHttpFileName(System.String)

Sets both FileName and FileNameStar using encodings appropriate for HTTP headers.

public void SetHttpFileName(string fileName)
SetMimeFileName(System.String)

Sets the FileName parameter using encodings appropriate for MIME headers. The FileNameStar paraemter is removed.

public void SetMimeFileName(string fileName)
ToString()
Return type:System.String
public override string ToString()
TryParse(System.String, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue)
Return type:System.Boolean
public static bool TryParse(string input, out ContentDispositionHeaderValue parsedValue)