ManagementAuthorizationInfo(String, String, Boolean) Constructor
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.
Initializes a new instance of the ManagementAuthorizationInfo class.
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)
Parameters
- name
- String
The user name or role to be granted permission.
- configurationPath
- String
The configuration path for which authorization will be granted.
- isRole
- Boolean
true
to indicate that the value specified in the name
parameter is a security role; otherwise, false
.
Exceptions
name
or configurationPath
is null
or empty.
Remarks
The Microsoft.Web.Management.Server.ManagementAuthorizationProvider.Grant method returns a ManagementAuthorizationInfo object.