Share via


HttpContentDispositionHeaderValue.FileName 屬性

定義

取得或設定單一檔案之 Content-Disposition HTTP 標頭中filename-parm資訊的值。

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

void FileName(winrt::hstring value);
public string FileName { get; set; }
var string = httpContentDispositionHeaderValue.fileName;
httpContentDispositionHeaderValue.fileName = string;
Public Property FileName As String

屬性值

String

Platform::String

winrt::hstring

建議的檔案名稱。

備註

FileName 屬性是一項建議,說明如何建構檔案名,以在實體中斷連結並儲存在不同的檔案中時儲存要使用的訊息承載。

FileName 屬性會針對非 ascii 字元使用 MIME 編碼。

適用於