Метод Web.UnshareObject
Removes Sharing permissions on an object.
Пространство имен: Microsoft.SharePoint.Client
Сборки: Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Shared Function UnshareObject ( _
context As ClientRuntimeContext, _
url As String _
) As SharingResult
'Применение
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
)
Параметры
- context
Тип: Microsoft.SharePoint.Client.ClientRuntimeContext
url
Тип: System.StringThe URL of the web with the path of an object in SharePoint.
Возвращаемое значение
Тип: Microsoft.SharePoint.Client.SharingResult
A SharingResult object which contains status codes pertaining to the completion of the operation.
Замечания
For more information and code sample, see External sharing API for SharePoint and OneDrive for Business.