ManagementAuthorizationInfo(String, String, Boolean) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ManagementAuthorizationInfo 类的新实例。
public:
ManagementAuthorizationInfo(System::String ^ name, System::String ^ configurationPath, bool isRole);
public ManagementAuthorizationInfo (string name, string configurationPath, bool isRole);
new Microsoft.Web.Management.Server.ManagementAuthorizationInfo : string * string * bool -> Microsoft.Web.Management.Server.ManagementAuthorizationInfo
Public Sub New (name As String, configurationPath As String, isRole As Boolean)
参数
- name
- String
要授予权限的用户名或角色。
- configurationPath
- String
将为其授予授权的配置路径。
- isRole
- Boolean
true
如果指示参数中指定的 name
值是安全角色,则为 ;否则为 false
。
例外
name
或 configurationPath
为 null
或为空。
注解
Microsoft.Web.Management.Server.ManagementAuthorizationProvider.Grant 方法将返回 ManagementAuthorizationInfo 对象。