IsAuthorized Method
Collapse the table of content
Expand the table of content

ManagementAuthorizationProvider.IsAuthorized Method (IPrincipal, String)

IIS 7.0

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

Namespace:   Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public abstract bool IsAuthorized(
	IPrincipal principal,
	string configurationPath


Type: System.Security.Principal.IPrincipal

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

Type: System.String

The configuration path.

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

Return Value

Type: System.Boolean

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

Exception Condition

principal is null or empty.

Return to top
© 2016 Microsoft