Web.ForwardObjectLink 方法

Share an object in SharePoint such as a list item, or site with no Acl changes, even when you do not have permission to share and can't send an access request. Use this method to send the link of the object to site members who already has permission to view the 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 ForwardObjectLink ( _
    context As ClientRuntimeContext, _
    url As String, _
    peoplePickerInput As String, _
    emailSubject As String, _
    emailBody As String _
) As SharingResult
用法
Dim context As ClientRuntimeContext
Dim url As String
Dim peoplePickerInput As String
Dim emailSubject As String
Dim emailBody As String
Dim returnValue As SharingResult

returnValue = Web.ForwardObjectLink(context, _
    url, peoplePickerInput, emailSubject, _
    emailBody)
public static SharingResult ForwardObjectLink(
    ClientRuntimeContext context,
    string url,
    string peoplePickerInput,
    string emailSubject,
    string emailBody
)

参数

  • url
    类型:System.String

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

  • peoplePickerInput
    类型:System.String

    A string of JSON representing users in people picker format. Entries in the people picker must be existing site members and has view permission to the object.

  • emailSubject
    类型:System.String

    The text making up the subject line of the email.

  • emailBody
    类型:System.String

    The text making up the body of the email.

返回值

类型:Microsoft.SharePoint.Client.SharingResult
A SharingResult object which contains a completion script and an optional page to redirect to if desired.

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间