Share via


SPWebService.ShowUserNameOnAccessDenied property

in hosting environment, people may want to set it to false so as to prevent information disclosure to other sites hosted on the same server.

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

Syntax

'Declaration
Public Property ShowUserNameOnAccessDenied As Boolean
    Get
    Set
'Usage
Dim instance As SPWebService
Dim value As Boolean

value = instance.ShowUserNameOnAccessDenied

instance.ShowUserNameOnAccessDenied = value
public bool ShowUserNameOnAccessDenied { get; set; }

Property value

Type: System.Boolean
Returns Boolean.

See also

Reference

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace