Web.CreateAnonymousLink 方法
Create an anonymous link which can be used to access a document without needing to authenticate.
命名空间: 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 CreateAnonymousLink ( _
context As ClientRuntimeContext, _
url As String, _
isEditLink As Boolean _
) As ClientResult(Of String)
用法
Dim context As ClientRuntimeContext
Dim url As String
Dim isEditLink As Boolean
Dim returnValue As ClientResult(Of String)
returnValue = Web.CreateAnonymousLink(context, _
url, isEditLink)
public static ClientResult<string> CreateAnonymousLink(
ClientRuntimeContext context,
string url,
bool isEditLink
)
参数
url
类型:System.StringThe URL of the site, with the path of the object in SharePoint represented as query string parameters, forSharing set to 1 if sharing, and mbypass set to 1 to bypass any mobile logic. For example:
https://contoso.com/?forSharing=1&mbypass=1&List=%7BCF908473%2D72D4%2D449D%2D8A53%2D4BD01EC54B84%7D&obj={CF908473-72D4-449D-8A53-4BD01EC54B84},1,DOCUMENT
isEditLink
类型:System.BooleanIf true, the link will allow the guest user edit privileges on the item.
返回值
类型:Microsoft.SharePoint.Client.ClientResult<String>
The string for the anonymous link.