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

GetPageById() public method

Gets the XWiki Document for a given id.
public GetPageById ( String pageFullName ) : XWikiDocument
pageFullName String The full name of the page.
return XWikiDocument
        public XWikiDocument GetPageById(String pageFullName)
        {
            String[] wikiPageName = pageFullName.Split('.');
            if (wikiPageName.Length > 2)
            {
                throw new InvalidPageNameException();
            }
            Space space = this[wikiPageName[0]];
            return space[wikiPageName[1]];
        }