Skip to main content
HttpContentDispositionHeaderValue.FileName | fileName property

Applies to Windows and Windows Phone

Gets or sets the value of the filename-parm information in the Content-Disposition HTTP header for a single file.

Syntax


var fileName = httpContentDispositionHeaderValue.fileName;
httpContentDispositionHeaderValue.fileName = fileName;

public string FileName { get; set; }

Public Property FileName As String

public:
property String^ FileName { 
   String^ get();
   void set (String^ value);
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A suggested filename.

Remarks

The FileName property is a suggestion for how to construct a filename for storing the message payload to be used if the entity is detached and stored in a separate file.

The FileName property uses MIME encoding for non-ascii characters.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http.Headers
Windows::Web::Http::Headers [C++]

Metadata

Windows.winmd

See also

HttpContentDispositionHeaderValue