共用方式為


SPRoleAssignment.Parent property

取得父物件的角色指派。

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

Syntax

'宣告
Public ReadOnly Property Parent As ISecurableObject
    Get
'用途
Dim instance As SPRoleAssignment
Dim value As ISecurableObject

value = instance.Parent
public ISecurableObject Parent { get; }

Property value

Type: Microsoft.SharePoint.ISecurableObject
ISecurable 介面代表父物件。

備註

父物件是a null reference (Nothing in Visual Basic) ,直到集合中加入角色指派。

請參閱

參照

SPRoleAssignment class

SPRoleAssignment members

Microsoft.SharePoint namespace