C# Класс DotNetNuke.Extensions.Modules.PortalModuleBaseExtensions

Extenions for the PortalModuleBase class.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

IsCurrentUserAnAdmin() публичный статический Метод

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.
Результат bool

IsUserAnAdmin() публичный статический Метод

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.
Результат bool

IsUserAnAdmin() публичный статический Метод

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.
Результат bool

ProcessException() публичный статический Метод

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.
Результат void

ProcessException() публичный статический Метод

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.
Результат void