SPUtility.ExecuteProxyOperation Method

Called from full trust code running in the Windows SharePoint User Code Service worker process in order to execute an operation that cannot otherwise be performed in the process. This method cannot be called directly by user code.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Function ExecuteProxyOperation ( _
    assemblyName As String, _
    typeName As String, _
    args As SPProxyOperationArgs _
) As Object
'Usage
Dim assemblyName As String
Dim typeName As String
Dim args As SPProxyOperationArgs
Dim returnValue As Object

returnValue = SPUtility.ExecuteProxyOperation(assemblyName, _
    typeName, args)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static Object ExecuteProxyOperation(
    string assemblyName,
    string typeName,
    SPProxyOperationArgs args
)

Parameters

Return Value

Type: System.Object
A serializable object.

Remarks

If this method is called from a Full Trust environment, it throws an exception of System.InvalidOperationException.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace