Share via


SPWebApplication.ApplicationPrincipalMaxRights property

Gets or sets the maximum rights that any application principal user will have in the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property ApplicationPrincipalMaxRights As SPBasePermissions
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As SPBasePermissions

value = instance.ApplicationPrincipalMaxRights

instance.ApplicationPrincipalMaxRights = value
public SPBasePermissions ApplicationPrincipalMaxRights { get; set; }

Property value

Type: Microsoft.SharePoint.SPBasePermissions
The maximum set of rights.

Exceptions

Exception Condition
SecurityException

The current user is not a farm administrator and the set accessor has been called.

Remarks

An application principal is an SPUser object that represents an external application, such as a Silverlight application. For more information about application principals, see How to: Enable an External Application Provider.

Only a farm administrator can set this property.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace