SPDocumentSharingManager.IsDocumentSharingEnabled method
Checks if document sharing is enabled on a document library.
Namespace: Microsoft.SharePoint.Sharing
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsDocumentSharingEnabled ( _
list As SPList _
) As Boolean
'Usage
Dim list As SPList
Dim returnValue As Boolean
returnValue = SPDocumentSharingManager.IsDocumentSharingEnabled(list)
public static bool IsDocumentSharingEnabled(
SPList list
)
Parameters
list
Type: Microsoft.SharePoint.SPListThe document library on which to check whether document sharing is in an enabled state.
Return value
Type: System.Boolean
true if document sharing is enabled, false otherwise.
See also
Reference
SPDocumentSharingManager class