Share via


SPWebService.CacheSiteLookup property

If true, site lookup will be cached.

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

Syntax

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

value = instance.CacheSiteLookup

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

Property value

Type: System.Boolean
Returns Boolean.

Remarks

Disabling the site lookup caches can negatively impact performance and scalability. This should generally only be disabled when using a custom SPSiteLookupProvider.

See also

Reference

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace