C# 클래스 DotNetNuke.Extensions.Modules.PortalModuleBaseExtensions

Extenions for the PortalModuleBase class.
파일 보기 프로젝트 열기: JonHaywood/DotNetNuke.Extensions

공개 메소드들

메소드 설명
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