Freigeben über


Web.UnshareObject-Methode

Removes Sharing permissions on an object.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Shared Function UnshareObject ( _
    context As ClientRuntimeContext, _
    url As String _
) As SharingResult
'Usage
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
)

Parameter

  • url
    Typ: System.String

    The URL of the web with the path of an object in SharePoint.

Rückgabewert

Typ: Microsoft.SharePoint.Client.SharingResult
A SharingResult object which contains status codes pertaining to the completion of the operation.

Hinweise

For more information and code sample, see External sharing API for SharePoint and OneDrive for Business.

Siehe auch

Referenz

Web Klasse

Web-Member

Microsoft.SharePoint.Client-Namespace