ContextUtil.IsCallerInRole(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the caller is in the specified role.
public:
static bool IsCallerInRole(System::String ^ role);
public static bool IsCallerInRole (string role);
static member IsCallerInRole : string -> bool
Public Shared Function IsCallerInRole (role As String) As Boolean
Parameters
- role
- String
The name of the role to check.
Returns
true
if the caller is in the specified role; otherwise, false
.
Exceptions
There is no COM+ context available.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.