沙盒解决方案中可用和不可用的 .NET 程序集

上次修改时间: 2015年3月9日

适用范围: SharePoint Foundation 2010

在 SharePoint Online 中提供

本主题列出 SharePoint 沙盒解决方案 中可用和不可用的 Microsoft .NET Framework 3.5 程序集。

沙盒解决方案中对 .NET 可用性的限制

沙盒解决方案在由高度限制性代码访问安全 (CAS) 策略控制的特殊沙盒工作进程 (SPUCWorkerProcess.exe) 中运行。除了此策略的特殊性之外,存在此类策略并且它不授予完全权限的事实使得在沙盒中运行的代码成为部分受信任的调用方。这意味着,此类代码只能访问那些具有 AllowPartiallyTrustedCallersAttribute 属性的 .NET Framework 3.5 程序集。以下各部分列出了具有和不具有此属性的 .NET Framework 3.5 程序集。

安全注释安全注释

请记住,要从沙盒代码中调用程序集的类,具有该属性是必要条件,但不是充分条件。此类程序集中可能有些类或程序需要沙盒工作进程的 CAS 策略所不允许的权限。

具有 AllowPartiallyTrustedCallers 属性的 .NET Framework 3.5 程序集

程序集

说明

Accessibility

IEExecRemote

Microsoft.VisualBasic

Microsoft.Vsa

mscorlib

PresentationCore

PresentationFramework 和所有 PresentationFramework。*

Windows Presentation Foundation

Sentinel.v3.5Client

System

所有 System.*,但下表列出的 19 个 System.* 程序集除外。大多数例外的程序集名称中包含"Design"、"Runtime"或"Workflow"。

System.Windows.Forms

Windows 窗体

UIAutomationProvider

UIAutomationTypes

WindowsBase

不具有 AllowPartiallyTrustedCallers 属性的 .NET Framework 3.5 程序集

csccompmgd

CustomMarshallers

IEHost

IIEHost

ISymWrapper

所有 Microsoft.Build.*

Microsoft.Data.Entity.Build.Tasks

Microsoft.VisualBasic.Compatibility

Microsoft.VisualBasic.Compatibility.Data

Microsoft.VisualBasic.Vsa

Microsoft.VisualC

Microsoft.VisualC.STLCLR

Microsoft.Vsa.Vb.CodeDOMProcessor

Microsoft_VsaVB

PresentationBuildTasks

ReachFramework

打印和 XPS

sysglobl

System.Configuration.Install

System.Data.Services.Design

System.Design

System.Drawing.Design

System.IdentityModel.Selectors

System.IO.Log

System.Management

System.ManagementInstrumentation

System.Messaging

System.Runtime.Remoting

System.Runtime.Serialization.Formatters.Soap

System.Speech

System.Web.DynamicData.Design

System.Web.Entity.Design

System.Web.Extensions.Design

System.Workflow.Activities

System.Workflow.ComponentModel

System.Workflow.Runtime

System.WorkflowServices

UIAutomationClient

UIAutomationClientsideProviders

WindowsFormsIntegration

请参阅

概念

沙盒解决方案的限制

沙盒解决方案体系结构