Share via


ObjectSharingInformation.CanCurrentUserShare method

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

Syntax

'Declaration
Public Shared Function CanCurrentUserShare ( _
    context As ClientRuntimeContext, _
    docId As String _
) As ClientResult(Of UserSharingCapabilities)
'Usage
Dim context As ClientRuntimeContext
Dim docId As String
Dim returnValue As ClientResult(Of UserSharingCapabilities)

returnValue = ObjectSharingInformation.CanCurrentUserShare(context, _
    docId)
public static ClientResult<UserSharingCapabilities> CanCurrentUserShare(
    ClientRuntimeContext context,
    string docId
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<UserSharingCapabilities>

See also

Reference

ObjectSharingInformation class

ObjectSharingInformation members

Microsoft.SharePoint.Client namespace