I created a document library by code, and I need to return the URL of the All Items page.
I tried this, but its not what I am looking for
SPList oSPList = oSPWeb.Lists.TryGetList(DocumentLibraryName);
if (oSPList == null)
{
Guid ID = oSPWeb.Lists.Add(DocumentLibraryName, DocumentLibraryName + System.DateTime.Now.ToString(), SPListTemplateType.DocumentLibrary);
oSPList = oSPWeb.Lists[ID];
DocumentLibraryLink = oSPList.DefaultViewUrl;