SPObjectSharingInformation.IsSharedWithCurrentUser property

Gets whether the object is shared with the user making the current request.

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

Syntax

'Declaration
Public Property IsSharedWithCurrentUser As Boolean
    Get
    Private Set
'Usage
Dim instance As SPObjectSharingInformation
Dim value As Boolean

value = instance.IsSharedWithCurrentUser
public bool IsSharedWithCurrentUser { get; private set; }

Property value

Type: System.Boolean
true if the object is shared, otherwise false.

See also

Reference

SPObjectSharingInformation class

SPObjectSharingInformation members

Microsoft.SharePoint namespace