RequestAccessEmail Property
The RequestAccessEmail property of the SPPermissionCollection class gets or sets whether request for access is enabled for a site and specifies the e-mail address to which requests are sent.
Property Value
A string that contains the e-mail address. If set to an empty string, request for access to the site is not enabled.
Remarks
The RequestAccessEmail property applies to the permissions for an entire site, while the RequestAccess property applies to the permissions for a single list. If the RequestAccessEmail property contains an empty string, then request for access is not enabled for the site or for any of its lists.
Example
The following code example enables request for access on the current site, but removes request for access from a specified list.
This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security