ManagementAuthorizationInfo(String, String, Boolean) 构造函数

定义

初始化 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

例外

nameconfigurationPathnull 或为空。

注解

Microsoft.Web.Management.Server.ManagementAuthorizationProvider.Grant 方法将返回 ManagementAuthorizationInfo 对象。

适用于