ISPUserCodeExecutionHostProxy.Execute method
Executes a request using a user code wrapper object in a user code worker process.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Function Execute ( _
userCodeWrapperType As Type, _
siteCollectionId As Guid, _
userToken As SPUserToken, _
affinityBucketName As String, _
executionContext As SPUserCodeExecutionContext _
) As Object
'Usage
Dim instance As ISPUserCodeExecutionHostProxy
Dim userCodeWrapperType As Type
Dim siteCollectionId As Guid
Dim userToken As SPUserToken
Dim affinityBucketName As String
Dim executionContext As SPUserCodeExecutionContext
Dim returnValue As Object
returnValue = instance.Execute(userCodeWrapperType, _
siteCollectionId, userToken, affinityBucketName, _
executionContext)
Object Execute(
Type userCodeWrapperType,
Guid siteCollectionId,
SPUserToken userToken,
string affinityBucketName,
SPUserCodeExecutionContext executionContext
)
Parameters
userCodeWrapperType
Type: System.TypeThe type of wrapper object to activate on the remote user code execution server. This value must specifiy a Type that derives from SPUserCodeWrapper.
siteCollectionId
Type: System.GuidThe site collection identifier of the site which the wrapper object will be working within.
- userToken
Type: Microsoft.SharePoint.SPUserToken
affinityBucketName
Type: System.StringThe name of the affinity bucket that should be used.
executionContext
Type: Microsoft.SharePoint.UserCode.SPUserCodeExecutionContextThe wrapper-specific execution context data. This value must be serializable.
Return value
Type: System.Object
An object containing the results of the request.
See also
Reference
ISPUserCodeExecutionHostProxy interface