Метод IsInRole в классе UserInfo из пространства имен DotNetNuke.Entities.Users в C# предназначен для определения принадлежности пользователя к определенной роли в системе DotNetNuke. Этот метод принимает на вход имя роли и возвращает логическое значение, истину если пользователь принадлежит указанной роли, и ложь в противном случае. Таким образом, данный метод позволяет осуществлять проверку прав доступа и использовать соответствующую логику в зависимости от роли, к которой принадлежит пользователь.
C# (CSharp) DotNetNuke.Entities.Users UserInfo.IsInRole - 32 примеров найдено. Это лучшие примеры C# (CSharp) кода для DotNetNuke.Entities.Users.UserInfo.IsInRole, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.