Share via


SPPolicyCollection.AnonymousPolicy property

Gets or sets the security policy for anonymous users.

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

Syntax

'Declaration
Public Property AnonymousPolicy As SPAnonymousPolicy
    Get
    Set
'Usage
Dim instance As SPPolicyCollection
Dim value As SPAnonymousPolicy

value = instance.AnonymousPolicy

instance.AnonymousPolicy = value
public SPAnonymousPolicy AnonymousPolicy { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.SPAnonymousPolicy
An SPAnonymousPolicy value that specifies the security policy for anonymous users.

See also

Reference

SPPolicyCollection class

SPPolicyCollection members

Microsoft.SharePoint.Administration namespace