共用方式為


SPWebApplication.PolicyRoles property

取得 Web 應用程式定義的原則角色的集合。

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

Syntax

'宣告
Public ReadOnly Property PolicyRoles As SPPolicyRoleCollection
    Get
'用途
Dim instance As SPWebApplication
Dim value As SPPolicyRoleCollection

value = instance.PolicyRoles
public SPPolicyRoleCollection PolicyRoles { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPPolicyRoleCollection
SPPolicyRoleCollection 物件,代表原則角色的集合。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace