ILists

Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ProjectModel.Collections.ILists


Represents a collection of lists that can be accessed by namespace and name.

This interface can be used in action OwnCode (C# or PHP) of ProjectMaker.

Properties

Item

Property

Get the list by the specified name.

Parameters

ПараметрОписание
listName:http://msdn.microsoft.com/en-us/library/system.string.aspx: The name of list.

Example

// 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;

Example2

// 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;