Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IsAuthorized Method

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
)

Parameters

principal
Type: System.Security.Principal..::..IPrincipal
An interface that represents the security context of the user on whose behalf the code is running.
configurationPath
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.

ExceptionCondition
System..::..ArgumentNullException

principal is nullNothingnullptrunita null reference (Nothing in Visual Basic) or empty.

Community Additions

ADD
Show:
© 2015 Microsoft