Partager via


InvitedUserMaximumLevel Property

The InvitedUserMaximumLevel property of the SPQuota class gets or sets the maximum number of users that can be invited to the site collection when the account mode for Microsoft Active Directory directory service is enabled.

Property Value

A 32-bit integer that specifies the maximum number of subscribers. The default value is 0 (zero).

Remarks

The InvitedUserMaximumLevel property only applies to deployments of Microsoft Windows SharePoint Services in which Active Directory account creation mode is enabled.

This property returns an ArgumentException exception if the account mode for Active Directory directory service is not enabled.

Example

The following code example sets a maximum level for the number of users that can be invited to a specified site collection.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security