다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class SPUserCodeWrapper _
    Inherits MarshalByRefObject
'Usage
Dim instance As SPUserCodeWrapper
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, 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