共用方式為


SPPolicyCollection.AnonymousPolicy Property

Gets or sets the security policy for anonymous users.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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