共用方式為


SPWebApplication.AllowAnalyticsCookieForAnonymousUsers property

啟用或停用匿名使用者的分析 cookie。

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

Syntax

'宣告
Public Property AllowAnalyticsCookieForAnonymousUsers As Boolean
    Get
    Set
'用途
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.AllowAnalyticsCookieForAnonymousUsers

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

Property value

Type: System.Boolean
true如果已啟用匿名使用者的分析 cookie ;否則,請false。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace