XWiki.Model.Wiki.this C# (CSharp) Method

this() public method

Wiki indexer. Gets the instance of the specified space in the wiki.
public this ( String spaceName ) : Space
spaceName String The name of the wiki space.
return Space
        public Space this[String spaceName]
        {
            get
            {
                foreach (Space space in spaces)
                {
                    if (space.name == spaceName)
                    {
                        return space;
                    }
                }
                String message = "There is no space '" + spaceName + "in the wiki";
                throw new Exception(message);
            }
        }