Web.UnshareObject - Méthode
Removes Sharing permissions on an object.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Shared Function UnshareObject ( _
context As ClientRuntimeContext, _
url As String _
) As SharingResult
'Utilisation
Dim context As ClientRuntimeContext
Dim url As String
Dim returnValue As SharingResult
returnValue = Web.UnshareObject(context, _
url)
public static SharingResult UnshareObject(
ClientRuntimeContext context,
string url
)
Paramètres
- context
Type : Microsoft.SharePoint.Client.ClientRuntimeContext
url
Type : System.StringThe URL of the web with the path of an object in SharePoint.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.SharingResult
A SharingResult object which contains status codes pertaining to the completion of the operation.
Remarques
For more information and code sample, see External sharing API for SharePoint and OneDrive for Business.