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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.