Export (0) Print
Expand All
Expand Minimize

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

public static Object ExecuteProxyOperation(
	string assemblyName,
	string typeName,
	SPProxyOperationArgs args


Type: System.String
The name of the assembly that contains a class that inherits from SPProxyOperation.
Type: System.String
The name of the type that inherits from SPProxyOperation.
Type: Microsoft.SharePoint.UserCode.SPProxyOperationArgs
An argument to be passed to the Execute(SPProxyOperationArgs) method of the SPProxyOperation class.

Return Value

Type: System.Object
A serializable object.

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

Community Additions

© 2014 Microsoft