次の方法で共有


PropertyDescriptorCollection.System.Collections.IDictionary.Item プロパティ

メモ : この名前空間、クラス、およびメンバは、.NET Framework Version 1.1 だけでサポートされています。

[C#] C# では、このプロパティは PropertyDescriptorCollection クラスのインデクサになります。

Private Default Property Item( _
   ByVal key As Object _) As Object Implements IDictionary.Item
[C#]
object IDictionary.this[
   objectkey] {get; set;}
[C++]
private: __property Object* System::Collections::IDictionary::get_Item(Object* key);private: __property void   System::Collections::IDictionary::set_Item(Object* key,   Object*);
[JScript]
private function get IDictionary.get_Item(key : Object) : Object;private function set IDictionary.set_Item(key : Object, value : Object);またはprivate function get IDictionary.get_Item(key : Object) : Object;private function set IDictionary.set_Item(key : Object, value : Object);

[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。

引数 [JScript]

  • key

パラメータ [Visual Basic, C#, C++]

  • key

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

PropertyDescriptorCollection クラス | PropertyDescriptorCollection メンバ | System.ComponentModel 名前空間