Поделиться через


Метод 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