Share via


ManagementAuthorizationProvider.IsAuthorized(IPrincipal, String) Method

Definition

When overridden in a derived class, gets a value indicating whether the specified principal is authorized for the specified configuration path.

public:
 abstract bool IsAuthorized(System::Security::Principal::IPrincipal ^ principal, System::String ^ configurationPath);
public abstract bool IsAuthorized (System.Security.Principal.IPrincipal principal, string configurationPath);
abstract member IsAuthorized : System.Security.Principal.IPrincipal * string -> bool
Public MustOverride Function IsAuthorized (principal As IPrincipal, configurationPath As String) As Boolean

Parameters

principal
IPrincipal

An interface that represents the security context of the user on whose behalf the code is running.

configurationPath
String

The configuration path.

Note Because server authentication is not supported, the specified path should be more than just "/".

Returns

true if the principal is authorized for the configuration path; otherwise, false.

Exceptions

principal is null or empty.

Applies to