System::Collections::Generic::KeyValuePair クラス
KeyValuePair class
キーと値のペア。この型はスタック上に割り当て、値渡しまたは参照渡しで関数に渡すべきです。System::SmartPtr クラスを使用してこの型のオブジェクトを管理しないでください。
template<typename TKey,typename TValue>class KeyValuePair
メソッド
| メソッド | 説明 |
|---|---|
| get_Key() const | キーを取得します。 |
| get_Value() const | 値を取得します。 |
| GetHashCode() const | キーと値のハッシュを XOR してキー・バリューペアのハッシュを計算します。 |
| IsNull() const | 常に false を返します。 |
| KeyValuePair() | null キー・バリューペアの初期化子。 |
| KeyValuePair(const TKey&, const TValue&) | コンストラクタ。 |
| KeyValuePair(const std::pair<OtherK, OtherV>&) | 型変換コンストラクタ。 |
| operator<(const KeyValuePair&) const | IComparer<KeyValuePair<TKey, TValue» を継承したクラス用のパッチで、何も比較しません。 |
| ToString() const | キー・バリューペアを文字列に変換します。 |
参照
- Namespace System::Collections::Generic
- Library Aspose.Page for C++