Метод Web.ShareObject (ClientRuntimeContext, String, String, String, Int32, Boolean, Boolean, Boolean, String, String, Boolean)
Пространство имен: Microsoft.SharePoint.Client
Сборка: Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Shared Function ShareObject ( _
context As ClientRuntimeContext, _
url As String, _
peoplePickerInput As String, _
roleValue As String, _
groupId As Integer, _
propagateAcl As Boolean, _
sendEmail As Boolean, _
includeAnonymousLinkInEmail As Boolean, _
emailSubject As String, _
emailBody As String, _
useSimplifiedRoles As Boolean _
) As SharingResult
'Применение
Dim context As ClientRuntimeContext
Dim url As String
Dim peoplePickerInput As String
Dim roleValue As String
Dim groupId As Integer
Dim propagateAcl As Boolean
Dim sendEmail As Boolean
Dim includeAnonymousLinkInEmail As Boolean
Dim emailSubject As String
Dim emailBody As String
Dim useSimplifiedRoles As Boolean
Dim returnValue As SharingResult
returnValue = Web.ShareObject(context, _
url, peoplePickerInput, roleValue, _
groupId, propagateAcl, sendEmail, _
includeAnonymousLinkInEmail, emailSubject, _
emailBody, useSimplifiedRoles)
public static SharingResult ShareObject(
ClientRuntimeContext context,
string url,
string peoplePickerInput,
string roleValue,
int groupId,
bool propagateAcl,
bool sendEmail,
bool includeAnonymousLinkInEmail,
string emailSubject,
string emailBody,
bool useSimplifiedRoles
)
Параметры
- context
Тип: Microsoft.SharePoint.Client.ClientRuntimeContext
- url
Тип: System.String
- peoplePickerInput
Тип: System.String
- roleValue
Тип: System.String
- groupId
Тип: System.Int32
- propagateAcl
Тип: System.Boolean
- sendEmail
Тип: System.Boolean
- includeAnonymousLinkInEmail
Тип: System.Boolean
- emailSubject
Тип: System.String
- emailBody
Тип: System.String
- useSimplifiedRoles
Тип: System.Boolean
Возвращаемое значение
Тип: Microsoft.SharePoint.Client.SharingResult