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)
Available in Sandboxed Solutions: No

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