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
)
参数
- 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