SPSite.UsageInfo.Visits Field
Contains the cumulative number of visits to the site collection, which is tracked by the usage analysis code.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Visits As Long
'Usage
Dim instance As SPSite.UsageInfo
Dim value As Long
value = instance.Visits
instance.Visits = value
public long Visits
Remarks
Visits are defined as hits that have a referring URL from outside the site or no referring URL at all.
The usage analysis code tracks only data recorded in the HTTP logs. HTTP logs record most operations except requests for files in the _layouts directory and HTTP requests with results greater than or equal to 300 bytes.