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
)

参数

  • url
    类型:System.String

    The 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.

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间