Returns a portal info object for the portal
Namespace: DotNetNuke.Entities.UrlsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static PortalInfo GetPortal( int portalId, bool exceptionOnNull ) |
Visual Basic |
---|
Public Shared Function GetPortal ( portalId As Integer, exceptionOnNull As Boolean ) As PortalInfo |
Parameters
- portalId
- Type: System..::..Int32
paramportalIdM:DotNetNuke.Entities.Urls.CacheController.GetPortal(System.Int32,System.Boolean)
- exceptionOnNull
- Type: System..::..Boolean
paramexceptionOnNullM:DotNetNuke.Entities.Urls.CacheController.GetPortal(System.Int32,System.Boolean)
Return Value
returnsM:DotNetNuke.Entities.Urls.CacheController.GetPortal(System.Int32,System.Boolean)
Remarks
This method wraps the PortalController.GetPortal method, and adds a check if the reuslt is null.