共用方式為


SPPolicyRole class

定義的權限授與給單一原則角色拒絕。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPolicyRole

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

Syntax

'宣告
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPPolicyRole _
    Inherits SPAutoSerializingObject
'用途
Dim instance As SPPolicyRole
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPPolicyRole : SPAutoSerializingObject

備註

使用SPWebApplication類別之PolicyRoles屬性可傳回 Web 應用程式的原則角色的集合。

若要從集合中傳回單一原則角色使用索引器。例如,若集合已指派給變數myPolicyRoles,使用myPolicyRoles[index]以 C# 或 Visual Basic,其中index是名稱或索引編號集合中的原則角色中的myPolicyRoles(index) 。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPPolicyRole members

Microsoft.SharePoint.Administration namespace