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

this() public method

Space indexer. Gets a XWiki document based on its name.
public this ( String pageName ) : XWikiDocument
pageName String The name of the XWiki document.
return XWikiDocument
        public XWikiDocument this[String pageName]
        {
            get
            {
                foreach (XWikiDocument doc in documents)
                {
                    if (doc.name == pageName)
                    {
                        return doc;
                    }
                }
                throw new PageDoesNotExistException();
            }
        }