System.Data.dll 中禁用的类型和成员

SQL Server公共语言集成 (CLR) 编程不允许使用类型HostProtectionAttribute或成员,该类型或成员指定System.Security.Permissions.HostProtectionResource值为 ExternalProcessMgmt、、ExternalThreadingMayLeakOnAbortSecurityInfrastructureSelfAffectingProcessMgmntSelfAffectingThreading、SharedStateSynchronizationUI的枚举。 下表列出了宿主保护属性 (HPA) 值被禁用的 System.Data.dll 程序集的成员和类型。

注意

此列表是通过支持的程序集生成的。 有关详细信息,请参阅支持的.NET Framework库

类型或成员 HPA 值
System.Data.SqlClient.SqlCommand.BeginExecuteNonQuery() ExternalThreading
System.Data.SqlClient.SqlCommand.BeginExecuteReader() ExternalThreading
System.Data.SqlClient.SqlCommand.BeginExecuteXmlReader() ExternalThreading
System.Data.SqlClient.SqlDependency..ctor() ExternalThreading
System.Data.SqlClient.SqlDependency.Start() ExternalThreading
System.Data.SqlClient.SqlDependency.Stop() ExternalThreading
System.Data.TypedDataSetGenerator SharedState, Synchronization
System.Xml.XmlDataDocument 同步

另请参阅

宿主保护属性和 CLR 集成编程
Microsoft.VisualBasic.dll 中禁用的类型和成员
mscorlib.dll 中禁用的类型和成员
System.dll 中禁用的类型和成员
System.Core.dll 中禁用的类型和成员