共用方式為


SPWebApplication.Policies Property

Gets the collection of security policies that are defined for the Web application, overriding any policies set for a zone.

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

Syntax

'Declaration
Public ReadOnly Property Policies As SPPolicyCollection
    Get
'Usage
Dim instance As SPWebApplication
Dim value As SPPolicyCollection

value = instance.Policies
public SPPolicyCollection Policies { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPPolicyCollection
An SPPolicyCollection object that represents the collection of security policies.

Remarks

Security policies that are defined for the Web application override those that are defined for the zone.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace