网页
图片
视频
学术
词典
地图
更多
航班
笔记本
IsInRole
例句
释义:
全部
全部
类别:
全部
全部
,
口语
口语
,
书面语
书面语
,
标题
标题
,
技术
技术
来源:
全部
全部
,
字典
字典
,
网络
网络
难度:
全部
全部
,
简单
简单
,
中等
中等
,
难
难
更多例句筛选
收起例句筛选
1.
The My.
User
.
IsInRole
method
lets
your
code
to
determine
whether
the
current
user
is
a
member
of
the
specified
role
.
使用
My.User.IsInRole
方法
,
代码
可以
确定
当前
用户
是否
是
指定
角色
的
成员
。
msdn2.microsoft.com
2.
This
example
uses
the
My
.
User
.
IsInRole
method
to
determine
if
the
user
is an
administrator
before
accessing
a
resource
.
此
示例
使用
My.User.IsInRole
方法
确定
用户
在
访问
资源
之前
是否
为
管理员
。
msdn2.microsoft.com
3.
This
example
shows
how
to
use
the My
.
User
.
IsInRole
method
to
determine
if
the
user
is a
member
of a
particular
group
.
此
示例
演示
如何
使用
My.User.IsInRole
方法
确定
用户
是否
为
特定
组
的
成员
。
msdn2.microsoft.com
4.
In
this
case
,
you
simply
read
the
values
of the
current
thread
's
principal
or
use
the
IsInRole
method
perform
authorization
.
在
这种
情况下
,
只需
读取
当前
线程
主体
的
值
或
使用
IsInRole
方法
执行
身份
验证
。
msdn2.microsoft.com
5.
The
code
that
executes
the
IsInRole
method
does
not
display
the
Consent
dialog
box
.
执行
IsInRole
方法
的
代码
不
显示
“
同意
”
对话
框
。
msdn2.microsoft.com
6.
The
overload
of
the My
.
User
.
IsInRole
method
that
takes
a
string
provides easy
access
to
the
IsInRole
method
of the
current
principal
.
采用
一个
字符串
的
My.User.IsInRole
方法
的
重载
提供
了
简易
方法
来
访问
当前
主体
的
IsInRole
方法
。
msdn2.microsoft.com
7.
Indicates
the
type
of
role
to
check
when
calling
the My
.
User.
IsInRole
Method
.
指示
在
调用
My.User.IsInRole
方法
时
检查
的
角色
类型
。
msdn2.microsoft.com
8.
The
role
provider
accesses
the cached
role
values or the
roles
service
when
you
call
the
IsInRole
method
.
调用
IsInRole
方法
时
,
角色
提供程序
将
访问
缓存
的
角色
值
或
角色
服务
。
msdn2.microsoft.com