SPWeb.RequestAccessEnabled property
SharePoint 2013
Gets a Boolean value that indicates whether request for access to the website is enabled.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Gets a Boolean value that indicates whether request for access to the website is enabled.