SPProxyOperation.Execute Method
When overridden in a derived class, executes an operation that is prevented in the shim by passing it to the proxy.
Namespace: Microsoft.SharePoint.UserCode
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public MustOverride Function Execute ( _
args As SPProxyOperationArgs _
) As Object
'Usage
Dim instance As SPProxyOperation
Dim args As SPProxyOperationArgs
Dim returnValue As Object
returnValue = instance.Execute(args)
public abstract Object Execute(
SPProxyOperationArgs args
)
Parameters
args
Type: Microsoft.SharePoint.UserCode.SPProxyOperationArgsThe arguments for the method.
Return Value
Type: System.Object
The result of the operation.
Remarks
If this method is called from a full-trust environment, it will throw an InvalidOperationsException error.