C# Class DotNetNuke.Extensions.Modules.PortalModuleBaseExtensions

Extenions for the PortalModuleBase class.
Afficher le fichier Open project: JonHaywood/DotNetNuke.Extensions

Méthodes publiques

Méthode Description
IsCurrentUserAnAdmin ( this module ) : bool

Determines whether the current user is an administrator or not. All super users will be administrators.

IsUserAnAdmin ( this module, int userId ) : bool

Determines whether the user is an administrator or not in the current portal. All super users will be administrators.

IsUserAnAdmin ( this module, int portalId, int userId ) : bool

Determines whether the user is an administrator or not. All super users will be administrators.

ProcessException ( this module, Exception ex, string msg ) : void

Processes the exception and displays the error message to the user.

ProcessException ( this module, Exception ex, string msg, bool displayException ) : void

Processes the exception.

Method Details

IsCurrentUserAnAdmin() public static méthode

Determines whether the current user is an administrator or not. All super users will be administrators.
public static IsCurrentUserAnAdmin ( this module ) : bool
module this The module.
Résultat bool

IsUserAnAdmin() public static méthode

Determines whether the user is an administrator or not in the current portal. All super users will be administrators.
public static IsUserAnAdmin ( this module, int userId ) : bool
module this The module.
userId int User ID.
Résultat bool

IsUserAnAdmin() public static méthode

Determines whether the user is an administrator or not. All super users will be administrators.
public static IsUserAnAdmin ( this module, int portalId, int userId ) : bool
module this The module.
portalId int ID of portal to check against.
userId int User ID.
Résultat bool

ProcessException() public static méthode

Processes the exception and displays the error message to the user.
public static ProcessException ( this module, Exception ex, string msg ) : void
module this
ex System.Exception The exception.
msg string Message to display before the exception.
Résultat void

ProcessException() public static méthode

Processes the exception.
public static ProcessException ( this module, Exception ex, string msg, bool displayException ) : void
module this
ex System.Exception The exception.
msg string Message to display before the exception.
displayException bool True to display the exception to the user.
Résultat void