ManagementAuthorizationProvider.Grant(String, String, Boolean) Method

Definition

When overridden in a derived class, grants authorization to a user name or role for the specified configuration path.

public:
 abstract Microsoft::Web::Management::Server::ManagementAuthorizationInfo ^ Grant(System::String ^ name, System::String ^ configurationPath, bool isRole);
public abstract Microsoft.Web.Management.Server.ManagementAuthorizationInfo Grant (string name, string configurationPath, bool isRole);
abstract member Grant : string * string * bool -> Microsoft.Web.Management.Server.ManagementAuthorizationInfo
Public MustOverride Function Grant (name As String, configurationPath As String, isRole As Boolean) As ManagementAuthorizationInfo

Parameters

name
String

The user name to which authorization will be granted.

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.

Returns

A ManagementAuthorizationInfo object.

Exceptions

name is null or empty.

Applies to