Share via


SPUserCodeWrapper class

Manages the process of running certain functions, such as Web parts or events, that exist within the restricted privilege user code process.

Inheritance hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.SharePoint.Administration.SPUserCodeWrapper

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class SPUserCodeWrapper _
    Inherits MarshalByRefObject
'Usage
Dim instance As SPUserCodeWrapper
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class SPUserCodeWrapper : MarshalByRefObject

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPUserCodeWrapper members

Microsoft.SharePoint.Administration namespace