| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace > ILists Interface : Item Property |
Type: System.String
The name of list.
Get the list by the specified name.
IZennoList this[ string listName ]; {get;}
Type: System.String
The name of list.
Type: IZennoList
The list of items.
| Exception | Description |
|---|---|
| KeyNotFoundException | The exception that is thrown when the name specified for accessing a list in a collection does not match any name in the collection. |
// get list var list = project.Lists["MyList"]; // result string result = String.Empty; if (list.Count > 0) { foreach (string str in list) { if (String.IsNullOrWhiteSpace(result)) result = str; else result = String.Format("{0}:{1}", result, str); } } // return result return result;
// get list $list = $project->Lists->get_Item("MyList"); // result $result = String::Empty; if ($list->Count > 0) { foreach ($str as $list) { if (String::IsNullOrWhiteSpace($result)) $result = $str; else $result = String::Format("{0}:{1}", $result, $str); } } // return result return $result;
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven