System::Net::Http::Headers::HttpHeaderValueCollection クラス
コンテンツ
[
隠れる
]HttpHeaderValueCollection class
ヘッダー値のコレクションを表します。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してインスタンスを作成しないでください。そうしないと実行時エラーやアサーション失敗が発生します。このクラスは常に System::SmartPtr ポインタでラップし、そのポインタを関数の引数として渡すようにしてください。
template<typename T>class HttpHeaderValueCollection : public System::Collections::Generic::ICollection<T>
| パラメーター | 説明 |
|---|---|
| この | コレクション内で表されるヘッダー値の型です。 |
メソッド
| メソッド | 説明 |
|---|---|
| Add(const T&) override | コレクションに要素を追加します。 |
| Clear() override | コレクションからすべての要素を削除します。 |
| Contains(const T&) const override | コレクションに要素が存在するか確認します。 |
| CopyTo(System::ArrayPtr<T>, int32_t) override | すべてのコレクション要素を既存の配列要素にコピーします。 |
| get_Count() const override | RTTI 情報。 |
| get_IsReadOnly() | 現在のコレクションが読み取り専用かどうかを示す値を取得します。 |
| get_IsSpecialValueSet() | 現在のコレクションに “special value” が含まれているかどうかを示す値を取得します。 |
| GetEnumerator() override | 列挙子を取得します。 |
| GetHeaderStringWithoutSpecial() | 現在のコレクションの文字列表現を、“special value” なしで返します。 |
| HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>) | 新しいインスタンスを構築します。 |
| HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, Action<System::SharedPtr<HttpHeaderValueCollection<T>>, T>) | 新しいインスタンスを構築します。 |
| HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, T) | 新しいインスタンスを構築します。 |
| HttpHeaderValueCollection(String, System::SharedPtr<HttpHeaders>, T, Action<System::SharedPtr<HttpHeaderValueCollection<T>>, T>) | 新しいインスタンスを構築します。 |
| ParseAdd(String) | ヘッダー文字列表現を解析し、現在のコレクションに追加します。 |
| Remove(const T&) override | コレクションから要素を削除します。 |
| RemoveSpecialValue() | “special value” を削除します。 |
| SetSpecialValue() | “special value” を設定します。 |
| SetTemplateWeakPtr(uint32_t) override | n 番目のテンプレート引数を弱参照ポインタに設定します(共有ではなく)。コンテナ内のポインタを弱モードに切り替えることができます。 |
| ToString() const override | C# の Object.ToString() メソッドに相当します。カスタムオブジェクトを文字列に変換できるようにします。 |
| TryParseAdd(String) | ヘッダー文字列表現を解析し、現在のコレクションに追加しようとします。 |
参照
- Class ICollection
- Namespace System::Net::Http::Headers
- Library Aspose.Page for C++