ContentDispositionHeaderValue クラス

定義

Content-Disposition ヘッダーの値を表します。

public ref class ContentDispositionHeaderValue
public ref class ContentDispositionHeaderValue : ICloneable
public class ContentDispositionHeaderValue
public class ContentDispositionHeaderValue : ICloneable
type ContentDispositionHeaderValue = class
type ContentDispositionHeaderValue = class
    interface ICloneable
Public Class ContentDispositionHeaderValue
Public Class ContentDispositionHeaderValue
Implements ICloneable
継承
ContentDispositionHeaderValue
実装

注釈

Content-Disposition ヘッダーは、通常、ファイルのアップロードとダウンロードを操作するために使用されます。 形式は、処理の種類とパラメーターの一覧が続く 1 つのヘッダーであり、その一部が適切に定義されているという点で、他のヘッダーとは異なります。

このヘッダーは、次の 2 つの異なるコンテキストで使用されます。

  1. クラス内の入れ子になった本文コンテンツの MultipartFormDataContent MIME ヘッダー。 詳細については、「IETF RFC 2183」を参照してください。

  2. クラスの HttpContentHeaders HTTP ヘッダー。 詳細については、「IETF RFC 6266」を参照してください。

コンストラクター

ContentDispositionHeaderValue(ContentDispositionHeaderValue)

ContentDispositionHeaderValue クラスの新しいインスタンスを初期化します。

ContentDispositionHeaderValue(String)

ContentDispositionHeaderValue クラスの新しいインスタンスを初期化します。

プロパティ

CreationDate

ファイルが作成された日付。

DispositionType

コンテンツのボディ部の配置タイプです。

FileName

エンティティがデタッチされ、別のファイルに格納されている場合に使用するメッセージ ペイロードを格納するためのファイル名を作成する方法を提案します。

FileNameStar

エンティティがデタッチされ、別のファイルに格納されている場合に使用するメッセージ ペイロードを格納するためのファイル名を作成する方法を提案します。

ModificationDate

ファイルが最後に変更された日付。

Name

コンテンツのボディ部の名前です。

Parameters

パラメーターのセットには、Content-Disposition ヘッダーが含まれています。

ReadDate

ファイルが最後に読み取られた日付。

Size

ファイルのおおよそのサイズ (バイト単位)。

メソッド

Equals(Object)

指定した Object が、現在の ContentDispositionHeaderValue オブジェクトと等しいかどうかを判断します。

GetHashCode()

ContentDispositionHeaderValue オブジェクトのハッシュ関数として機能します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
Parse(String)

文字列を ContentDispositionHeaderValue インスタンスに変換します。

ToString()

現在の ContentDispositionHeaderValue オブジェクトを表す文字列を返します。

TryParse(String, ContentDispositionHeaderValue)

文字列が有効な ContentDispositionHeaderValue 情報かどうかを判断します。

明示的なインターフェイスの実装

ICloneable.Clone()

現在の ContentDispositionHeaderValue インスタンスのコピーである新しいオブジェクトを作成します。

適用対象