共用方式為


SPListItem.FirstUniqueAncestorSecurableObject property

如果已定義唯一的角色指派擷取第一個唯一上階否則會傳回第一個父物件 (資料夾、 清單或網站) 具有唯一的角色指派。

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

Syntax

'宣告
Public Overrides ReadOnly Property FirstUniqueAncestorSecurableObject As SPSecurableObject
    Get
'用途
Dim instance As SPListItem
Dim value As SPSecurableObject

value = instance.FirstUniqueAncestorSecurableObject
public override SPSecurableObject FirstUniqueAncestorSecurableObject { get; }

Property value

Type: Microsoft.SharePoint.SPSecurableObject
SPSecurableObject 表示此**[Microsoft.SharePoint.SPListItem]**物件的第一個唯一上階。

請參閱

參照

SPListItem class

SPListItem members

Microsoft.SharePoint namespace