| Visual Basic (Declaration) | |
|---|---|
Public Default Property Item( _ ByVal key As String _ ) As StudentRecord | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public StudentRecord this[ string key ]; {get; set;} | |
| Managed Extensions for C++ | |
|---|---|
public: __property StudentRecord* get_Item( string* key ); public: __property void set_Item( string* key, StudentRecord* value ); | |
| C++/CLI | |
|---|---|
public: property StudentRecord^ default [String^] { StudentRecord^ get(String^ key); void set (String^ key, StudentRecord^ value); } | |
Parameters
- key
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family